Beispiel #1
0
int
mprintf(
	const char *	fmt,
	...
	)
{
	va_list		ap;
	int		rc;

	va_start(ap, fmt);
	rc = mvfprintf(stdout, fmt, ap);
	va_end(ap);

	return rc;
}
Beispiel #2
0
int
mfprintf(
	FILE *		fp,
	const char *	fmt,
	...
	)
{
	va_list		ap;
	int		rc;

	va_start(ap, fmt);
	rc = mvfprintf(fp, fmt, ap);
	va_end(ap);

	return rc;
}
Beispiel #3
0
static int
alt_msgr(const char* file, int line, const char *format, va_list ap)
{
   if (file != NULL)
   {
      mfprintf (stderr, "I see a file...%s and a line, it's %d! ", file, line);
   }

   if (format != NULL)
   {
      mfprintf (stderr, "Uh, and there's a message for you: ");
      mvfprintf (stderr, format, ap);
   }

   mfprintf (stderr, "\n");

   return 1;
}