version 1.12, 2003/06/12 22:30:23 |
version 1.13, 2003/06/13 04:29:59 |
|
|
#include <term.h> |
#include <term.h> |
#include <time.h> |
#include <time.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <stdarg.h> |
|
|
#include "screen.h" /* interface to screen package */ |
#include "screen.h" /* interface to screen package */ |
#include "layout.h" /* defines for screen position layout */ |
#include "layout.h" /* defines for screen position layout */ |
|
|
} |
} |
} |
} |
|
|
/*VARARGS2*/ |
|
void |
void |
new_message(int type, char *msgfmt, caddr_t a1, caddr_t a2, caddr_t a3) |
new_message(int type, const char *msgfmt, ...) |
{ |
{ |
int i; |
int i; |
|
va_list ap; |
|
|
|
va_start(ap, msgfmt); |
/* first, format the message */ |
/* first, format the message */ |
(void) snprintf(next_msg, sizeof(next_msg), msgfmt, a1, a2, a3); |
vsnprintf(next_msg, sizeof(next_msg), msgfmt, ap); |
|
va_end(ap); |
|
|
if (msglen > 0) |
if (msglen > 0) |
{ |
{ |