2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
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
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.
16 SM_RCSID("@(#)$Id: fprintf.c,v 1.17 2001/09/11 04:04:48 gshapiro Exp $")
17 #include <sm/varargs.h>
19 #include <sm/assert.h>
23 ** SM_IO_FPRINTF -- format and print a string to a file pointer
26 ** fp -- file pointer to be printed to
27 ** timeout -- time to complete print
28 ** fmt -- markup format for the string to be printed
29 ** ... -- additional information for 'fmt'
32 ** Failure: returns SM_IO_EOF and sets errno
33 ** Success: returns the number of characters o/p
38 sm_io_fprintf(SM_FILE_T *fp, int timeout, const char *fmt, ...)
40 sm_io_fprintf(fp, timeout, fmt, va_alist)
45 #endif /* SM_VA_STD */
50 SM_REQUIRE_ISA(fp, SmFileMagic);
52 ret = sm_io_vfprintf(fp, timeout, fmt, ap);