diff options
Diffstat (limited to 'src/stdio/fprintf_s.c')
-rw-r--r-- | src/stdio/fprintf_s.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/stdio/fprintf_s.c b/src/stdio/fprintf_s.c new file mode 100644 index 00000000..b633dee8 --- /dev/null +++ b/src/stdio/fprintf_s.c @@ -0,0 +1,31 @@ +#include "stdio.h" +#include "stdarg.h" + +/** write formatted output to a file stream **/ +int fprintf_s(FILE * restrict stream, const char * restrict format, ...) +{ + __C_EXT(1, 201112L); + int retval; + va_list ap; + va_start(ap, format); + retval = vfprintf_s(stream, format, ap); + va_end(ap); + return retval; +} + +/*** +The fn(fprintf) function writes a formatted string to arg(stream). The format +of arg(format) and the variadic arguments is the same as that for fn(printf). +***/ + +/* UNSPECIFIED: ??? */ +/* UNDEFINED: ??? */ +/* IMPLEMENTATION: ??? */ +/* LOCALE: ??? */ + +/* RETURN(NEG): an error occurred */ +/* RETURN: the number of characters written */ + +/* +CEXT1(201112) +*/ |