diff options
Diffstat (limited to 'src/stdio/freopen_s.c')
-rw-r--r-- | src/stdio/freopen_s.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/stdio/freopen_s.c b/src/stdio/freopen_s.c new file mode 100644 index 00000000..d646bec8 --- /dev/null +++ b/src/stdio/freopen_s.c @@ -0,0 +1,36 @@ +#include "stdio.h" +#include "__stdio.h" +#include <fcntl.h> +#include <string.h> + +/** reopen a file stream with a new file **/ +errno_t freopen_s(FILE * restrict * restrict newstreamptr, + const char * restrict filename, + const char * restrict mode, + FILE * restrict stream) +{ + __C_EXT(1, 201112L); + return 0; +} + +/*** +The fn(freopen) function changes the file associated with arg(stream) to +arg(filename). The meaning of arg(mode) is the same as with fn(fopen). + +Whatever file is currently associated with arg(stream) is closed, ignoring any +errors. + +The error and end-of-file indicators are cleared. +***/ + +/* UNSPECIFIED: - */ +/* UNDEFINED: - */ +/* IMPLEMENTATION: - */ +/* LOCALE: - */ + +/* RETURN(NULL): the open operation failed */ +/* RETURN: the value of arg(stream) */ + +/* +CEXT1(201112) +*/ |