Import sendmail 8.13.4 into a new contrib directory as the first step
[dragonfly.git] / contrib / sendmail-8.13.4 / libsm / vprintf.c
blob6e310efa6fc50eebc34f92458224642352a20da0
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.
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
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.
15 #include <sm/gen.h>
16 SM_RCSID("@(#)$Id: vprintf.c,v 1.14 2001/09/11 04:04:49 gshapiro Exp $")
17 #include <sm/io.h>
18 #include "local.h"
21 ** SM_VPRINTF -- print to standard out with variable length args
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
28 ** Returns:
29 ** as sm_io_vfprintf() does.
32 int
33 sm_vprintf(timeout, fmt, ap)
34 int timeout;
35 char const *fmt;
36 SM_VA_LOCAL_DECL
38 return sm_io_vfprintf(smiostdout, timeout, fmt, ap);