xref: /titanic_44/usr/src/cmd/sendmail/libsm/vprintf.c (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
16 
17 #include <sm/gen.h>
18 SM_RCSID("@(#)$Id: vprintf.c,v 1.12 2001/01/24 01:27:26 gshapiro Exp $")
19 #include <sm/io.h>
20 #include "local.h"
21 
22 /*
23 **  SM_VPRINTF -- print to standard out with variable length args
24 **
25 **	Parameters:
26 **		timeout -- length of time allow to do the print
27 **		fmt -- the format of the output
28 **		ap -- the variable number of args to be used for output
29 **
30 **	Returns:
31 **		as sm_io_vfprintf() does.
32 */
33 
34 int
35 sm_vprintf(timeout, fmt, ap)
36 	int timeout;
37 	char const *fmt;
38 	SM_VA_LOCAL_DECL
39 {
40 	return sm_io_vfprintf(smiostdout, timeout, fmt, ap);
41 }
42