vprintf.c revision 182352
1193323Sed/* 2193323Sed * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 3193323Sed * All rights reserved. 4193323Sed * Copyright (c) 1990, 1993 5193323Sed * The Regents of the University of California. All rights reserved. 6193323Sed * 7193323Sed * This code is derived from software contributed to Berkeley by 8193323Sed * Chris Torek. 9193323Sed * 10193323Sed * By using this file, you agree to the terms and conditions set 11193323Sed * forth in the LICENSE file which can be found at the top level of 12193323Sed * the sendmail distribution. 13193323Sed */ 14193323Sed 15193323Sed#include <sm/gen.h> 16199989SrdivackySM_RCSID("@(#)$Id: vprintf.c,v 1.14 2001/09/11 04:04:49 gshapiro Exp $") 17199989Srdivacky#include <sm/io.h> 18193323Sed#include "local.h" 19193323Sed 20198090Srdivacky/* 21193323Sed** SM_VPRINTF -- print to standard out with variable length args 22193323Sed** 23193323Sed** Parameters: 24193323Sed** timeout -- length of time allow to do the print 25193323Sed** fmt -- the format of the output 26193323Sed** ap -- the variable number of args to be used for output 27193323Sed** 28193323Sed** Returns: 29193323Sed** as sm_io_vfprintf() does. 30198892Srdivacky*/ 31193323Sed 32193323Sedint 33193323Sedsm_vprintf(timeout, fmt, ap) 34193323Sed int timeout; 35198090Srdivacky char const *fmt; 36193323Sed SM_VA_LOCAL_DECL 37193323Sed{ 38193323Sed return sm_io_vfprintf(smiostdout, timeout, fmt, ap); 39193323Sed} 40193323Sed