| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflmesg.h" void print_message (int msgid, ...)
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.
{ 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); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |