2 * Copyright (c) 2001 Sendmail, Inc. and its suppliers.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
13 SM_RCSID("@(#)$Id: err.c,v 8.5 2001/09/11 04:04:55 gshapiro Exp $")
20 message(const char *msg
, ...)
22 message(msg
, va_alist
)
31 if (isascii(m
[0]) && isdigit(m
[0]) &&
32 isascii(m
[1]) && isdigit(m
[1]) &&
33 isascii(m
[2]) && isdigit(m
[2]) && m
[3] == ' ')
36 (void) vfprintf(stderr
, m
, ap
);
38 (void) fprintf(stderr
, "\n");
44 syserr(const char *msg
, ...)
55 if (isascii(m
[0]) && isdigit(m
[0]) &&
56 isascii(m
[1]) && isdigit(m
[1]) &&
57 isascii(m
[2]) && isdigit(m
[2]) && m
[3] == ' ')
60 (void) vfprintf(stderr
, m
, ap
);
62 (void) fprintf(stderr
, "\n");