## tests/er/test_er.c

/* [<][>][^][v][top][bottom][index][help] */

## FUNCTIONS

This source file includes following functions.

1. main

    #include <erroutines.h>
    #include "bitmask.h"

    /*-----------------------------------------------------------------------*/

    void main (int argc, char **argv)
    /* [<][>][^][v][top][bottom][index][help] */
    {
    er_path_t erlogstr;

      /* this is to set the program name in global variable used in error reporting */
      ER_init(argc, argv);

      erlogstr.fdes = stderr;
      erlogstr.asp  = MA_new(MA_END);
      erlogstr.sev  = ER_SEV_D;
      erlogstr.mode = ER_M_SEVCHAR | ER_M_TEXTLONG;

      ER_setpath(& erlogstr);

      ER_perror(FAC_ER, ER_TOOSTU);

      ER_perror(FAC_IP, ER_TOOLAT, time(NULL));

      ER_dbg_eq(FAC_ER, MA_new(MA_END), "%u", time(NULL)  );
      ER_dbg_va(FAC_ER, MA_new(MA_END), "burumburum %d %d %d",
                getpid(), geteuid(), getuid() );

    }

/* [<][>][^][v][top][bottom][index][help] */