sl@0: /* FPRINTF.C sl@0: * sl@0: * Portions Copyright (c) 1990-1999 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: */ sl@0: sl@0: /* sl@0: * Copyright (c) 1990 The Regents of the University of California. sl@0: * All rights reserved. sl@0: * sl@0: * Redistribution and use in source and binary forms are permitted sl@0: * provided that the above copyright notice and this paragraph are sl@0: * duplicated in all such forms and that any documentation, sl@0: * advertising materials, and other materials related to such sl@0: * distribution and use acknowledge that the software was developed sl@0: * by the University of California, Berkeley. The name of the sl@0: * University may not be used to endorse or promote products derived sl@0: * from this software without specific prior written permission. sl@0: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR sl@0: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED sl@0: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. sl@0: */ sl@0: sl@0: #include <_ansi.h> sl@0: #include sl@0: sl@0: #include sl@0: sl@0: /** sl@0: Print formatted data to a stream. sl@0: Prints to the specified stream a sequence of arguments formatted sl@0: as the format argument specifies. sl@0: @return On success, the total number of characters printed is returned. sl@0: On error, a negative number is returned. sl@0: @param fp Pointer to an open file. sl@0: @param fmt String that contains the text to be printed. sl@0: */ sl@0: EXPORT_C int sl@0: fprintf (FILE * fp, const char *fmt,...) sl@0: { sl@0: int ret; sl@0: va_list ap; sl@0: sl@0: va_start (ap, fmt); sl@0: ret = vfprintf (fp, fmt, ap); sl@0: va_end (ap); sl@0: return ret; sl@0: }