utils/errex.c
void exit_prog(int msg, char * errmsg, ...) 
{
    char string[MAXMSG];

    /* Read args */
    va_list args;
    va_start(args, errmsg);
    vsprintf(string, errmsg, args);
    va_end(args);

    /* Print message */
    if (msg)
        slog(0, SLOG_ERROR, "%s", string);

    slog(0, SLOG_INFO, "პროგრამიდან გასასვლელად დააჭირეთ ენთერს");
    char c = getchar();
    while (c != '\n')
        c = getchar();

    exit(0);
}
/*
 * exit_prog - Exit from program with error message. Function 
 * exits with error message if argument msg is 1, if argument 
 * msg is 0 exit message would not printed. Argument errmsg is 
 * error message which is generated with the various list.
 */
Exit from program with error message. Function
exits with error message if argument msg is 1, if argument
msg is 0 exit message would not printed. Argument errmsg is
error message which is generated with the various list.
Exit from program with error message . Function exits with error message if argument msg is 1 if argument msg is 0 exit message would not printed . Argument errmsg is error message which is generated with the various list .
void exit_prog(int msg, char * errmsg, ...) 
{
    char string[MAXMSG];
    va_list args;
    va_start(args, errmsg);
    vsprintf(string, errmsg, args);
    va_end(args);
    if (msg)
        slog(0, SLOG_ERROR, "%s", string);
    slog(0, SLOG_INFO, "პროგრამიდან გასასვლელად დააჭირეთ ენთერს");
    char c = getchar();
    while (c != '\n')
        c = getchar();
    exit(0);
}
void exit_prog ( int msg , char * errmsg , ... ) { char string [ MAXMSG ] ; va_list args ; va_start ( args , errmsg ) ; vsprintf ( string , errmsg , args ) ; va_end ( args ) ; if ( msg ) slog ( 0 , SLOG_ERROR , " " , string ) ; slog ( 0 , SLOG_INFO , " char c = getchar ( ) ; while ( c != ' \n ' ) c = getchar ( ) ; exit ( 0 ) ; }
exit_prog - Exit from program with error message.
exit_prog - Exit from program with error message .
/* Read args */ /* Print message */