diff options
Diffstat (limited to 'src/stdio/printf_s.c')
-rw-r--r-- | src/stdio/printf_s.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/stdio/printf_s.c b/src/stdio/printf_s.c new file mode 100644 index 00000000..b5917062 --- /dev/null +++ b/src/stdio/printf_s.c @@ -0,0 +1,32 @@ +#include "stdio.h" +#include "stdarg.h" + +/** write formatted output **/ +int printf_s(const char *format, ...) +{ + __C_EXT(1, 201112L); + int retval; + va_list ap; + va_start(ap, format); + retval = vfprintf_s(stdout, format, ap); + va_end(ap); + return retval; +} + +/*** +The fn(fprintf) function writes a formatted string to macro(stdout). + +FIXME: printf format goes here +***/ + +/* UNSPECIFIED: ??? */ +/* UNDEFINED: ??? */ +/* IMPLEMENTATION: ??? */ +/* LOCALE: ??? */ + +/* RETURN(NEG): an error occurred */ +/* RETURN: the number of characters written */ + +/* +CEXT1(201112) +*/ |