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