44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
static char sccsid[] = "@(#)57 1.3 src/bos/usr/ccs/lib/libc/NLvfprintf.c, libcprnt, bos411, 9428A410j 6/16/90 01:29:11";
|
|
/*
|
|
* COMPONENT_NAME: (LIBCPRNT) Standard C Library Print Functions
|
|
*
|
|
* FUNCTIONS: NLvfprintf
|
|
*
|
|
* ORIGINS: 3, 27
|
|
*
|
|
* This module contains IBM CONFIDENTIAL code. -- (IBM
|
|
* Confidential Restricted when combined with the aggregated
|
|
* modules for this product)
|
|
* SOURCE MATERIALS
|
|
* (C) COPYRIGHT International Business Machines Corp. 1987, 1989
|
|
* All Rights Reserved
|
|
*
|
|
* US Government Users Restricted Rights - Use, duplication or
|
|
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <varargs.h>
|
|
|
|
/*
|
|
* FUNCTION: Writes output to to the stream pointed to by stream, under
|
|
* control of the string pointed to by format, that specifies
|
|
* how subsequent argumnts are converted for output.
|
|
*
|
|
* PARAMETERS: iop - stream to be printed to
|
|
* format - format used to print arguments
|
|
* args - arguments to be printed
|
|
*
|
|
* RETURN VALUE DESCRIPTIONS:
|
|
* If successful, returns number of characters printed
|
|
* Otherwise returns negative value
|
|
*/
|
|
|
|
int NLvfprintf (FILE *iop, char *format, va_list args)
|
|
{ register int rc; /*--- return code --- */
|
|
|
|
rc = _doprnt (format, args, iop);
|
|
return (ferror(iop)? EOF: rc);
|
|
}
|
|
|