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