| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

print_message

#include "sflmesg.h"
void
print_message (int msgid, ...)

Synopsis

Scans the message file for a message with the specified id. Each line in the message file should start with a four-digit id, then a space, then the message to print. The message can include format specifiers using '%'. Values for each format are passed after the msgid. Returns nothing. The message file must be sorted by ascending message id's. Make sure you call open message file () before this function. Prints the message on stderr.

Source Code - (sflmesg.c)

{
    va_list argptr;                     /*  Argument list pointer            */

    read_msg (msgid);                   /*  Retrieve message into msgline    */
    va_start (argptr, msgid);           /*  Start variable arguments list    */
    vfprintf (stderr, msgline, argptr);
    va_end   (argptr);                  /*  End variable arguments list      */
    fprintf  (stderr, "\n");
    fflush   (stderr);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation