src/log.c

/* [<][>]
[^][v][top][bottom][index][help] */

FUNCTIONS

This source file includes following functions.
  1. logPrint

/* $Id: log.c,v 1.1.1.1 1998/07/29 15:14:29 proff Exp $ */

#include "nglobal.h"
#include "log.h"

/*
 * if anyone can work out how to do this in one syslog call, without
 * using vsprintf, I'd dearly like to know. CPP IS LAME.
 */

EXPORT char *logPrintP;

EXPORT char *logPrint (char *fmt,...)
/* [<][>][^][v][top][bottom][index][help] */
{
        int i;
        va_list argp;
        va_start (argp, fmt);
        i = vsnprintf (logPrintP, MAX_SYSLOG-1, fmt, argp);
        va_end (argp);
        return logPrintP;
}

/* [<][>][^][v][top][bottom][index][help] */