xref: /illumos-gate/usr/src/cmd/sendmail/libsm/vprintf.c (revision fc910014e8a32a65612105835a10995f2c13d942)
1 /*
2  * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3  *      All rights reserved.
4  * Copyright (c) 1990, 1993
5  *	The Regents of the University of California.  All rights reserved.
6  *
7  * This code is derived from software contributed to Berkeley by
8  * Chris Torek.
9  *
10  * By using this file, you agree to the terms and conditions set
11  * forth in the LICENSE file which can be found at the top level of
12  * the sendmail distribution.
13  */
14 
15 #include <sm/gen.h>
16 SM_RCSID("@(#)$Id: vprintf.c,v 1.12 2001/01/24 01:27:26 gshapiro Exp $")
17 #include <sm/io.h>
18 #include "local.h"
19 
20 /*
21 **  SM_VPRINTF -- print to standard out with variable length args
22 **
23 **	Parameters:
24 **		timeout -- length of time allow to do the print
25 **		fmt -- the format of the output
26 **		ap -- the variable number of args to be used for output
27 **
28 **	Returns:
29 **		as sm_io_vfprintf() does.
30 */
31 
32 int
33 sm_vprintf(timeout, fmt, ap)
34 	int timeout;
35 	char const *fmt;
36 	SM_VA_LOCAL_DECL
37 {
38 	return sm_io_vfprintf(smiostdout, timeout, fmt, ap);
39 }
40