Files
seta75D d6fe8fe829 Init
2021-10-11 22:19:34 -03:00

44 lines
1.4 KiB
C

static char sccsid[] = "@(#)59 1.3 src/bos/usr/ccs/lib/libc/NLvprintf.c, libcprnt, bos411, 9428A410j 6/16/90 01:29:15";
/*
* COMPONENT_NAME: (LIBCPRNT) Standard C Library Print Functions
*
* FUNCTIONS: NLvprintf
*
* 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: 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
NLvprintf (char *format, va_list args)
{
register int rc; /*--- return code ---*/
rc = _doprnt (format, args, stdout);
return (ferror(stdout)? EOF: rc);
}