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.
11 #pragma ident "%Z%%M% %I% %E% SMI"
15 SM_RCSID("@(#)$Id: err.c,v 8.3 2001/01/24 01:27:30 gshapiro Exp $")
22 message(const char *msg
, ...)
24 message(msg
, va_alist
)
33 if (isascii(m
[0]) && isdigit(m
[0]) &&
34 isascii(m
[1]) && isdigit(m
[1]) &&
35 isascii(m
[2]) && isdigit(m
[2]) && m
[3] == ' ')
38 (void) vfprintf(stderr
, m
, ap
);
40 (void) fprintf(stderr
, "\n");
46 syserr(const char *msg
, ...)
57 if (isascii(m
[0]) && isdigit(m
[0]) &&
58 isascii(m
[1]) && isdigit(m
[1]) &&
59 isascii(m
[2]) && isdigit(m
[2]) && m
[3] == ' ')
62 (void) vfprintf(stderr
, m
, ap
);
64 (void) fprintf(stderr
, "\n");