xref: /freebsd/contrib/sendmail/libsm/vprintf.c (revision 313376588638950ba1e93c403dd8c97bc52fd3a2)
1 /*
2  * Copyright (c) 2000-2001 Proofpoint, 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.15 2013-11-22 20:51:44 ca 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