예제 #1
0
파일: msyslog.c 프로젝트: Distrotech/ntp
int
mprintf(
	const char *	fmt,
	...
	)
{
	va_list		ap;
	int		rc;

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

	return rc;
}
예제 #2
0
파일: msyslog.c 프로젝트: Distrotech/ntp
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;
}
예제 #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;
}