NetBSD/lib/libc/gen/_warnx.c

32 lines
539 B
C
Raw Normal View History

/* $NetBSD: _warnx.c,v 1.11 2011/07/17 20:54:34 joerg Exp $ */
1998-01-09 06:15:09 +03:00
/*
* J.T. Conklin, December 12, 1994
* Public Domain
*/
#include <sys/cdefs.h>
2005-06-12 09:34:34 +04:00
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: _warnx.c,v 1.11 2011/07/17 20:54:34 joerg Exp $");
2005-06-12 09:34:34 +04:00
#endif /* LIBC_SCCS and not lint */
2005-09-13 05:44:08 +04:00
#if defined(__indr_reference)
__indr_reference(_warnx, warnx)
#else
2005-09-13 05:44:08 +04:00
#include <stdarg.h>
void _vwarnx(const char *, va_list);
2005-09-13 05:44:08 +04:00
void
warnx(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
_vwarnx(eval, fmt, ap);
va_end(ap);
}
#endif