Lines 22-32
extern char *program ; /* Defined by mai
Link Here
|
22 |
#define MAX_COLUMN 78 /* maximum column to print upto */ |
22 |
#define MAX_COLUMN 78 /* maximum column to print upto */ |
23 |
|
23 |
|
24 |
void message(int flags, char *format, ...) |
24 |
void message(int flags, char *format, ...) |
25 |
{ |
25 |
{ |
26 |
va_list args ; |
26 |
va_list args ; |
27 |
static column = 0 ; /* current screen column for message wrap */ |
27 |
static int column = 0 ; /* current screen column for message wrap */ |
28 |
char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */ |
28 |
char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */ |
29 |
char *bufptr = msgbuf ; /* message buffer pointer */ |
29 |
char *bufptr = msgbuf ; /* message buffer pointer */ |
30 |
|
30 |
|
31 |
if ( (flags & MESSAGE_NL) && column != 0 ) { /* new line if not already */ |
31 |
if ( (flags & MESSAGE_NL) && column != 0 ) { /* new line if not already */ |
32 |
putc('\n', stderr) ; |
32 |
putc('\n', stderr) ; |