X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffreopen.c;h=906096f4a5cfbc57e6ab28770b9e2bc7dfd67f3c;hb=8a292a8d4b146cc31c81ed21a1925aa10fb6c206;hp=e8cc72a1f2924cba8e56c8acc5947ff2525ed7bf;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/functions/stdio/freopen.c b/functions/stdio/freopen.c index e8cc72a..906096f 100644 --- a/functions/stdio/freopen.c +++ b/functions/stdio/freopen.c @@ -1,6 +1,6 @@ /* $Id$ */ -/* freopen( const char *, const char * ) +/* freopen( const char *, const char *, FILE * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -21,7 +21,7 @@ (Primary use of this function is to redirect stdin, stdout, and stderr.) */ -struct _PDCLIB_file_t * freopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restrict mode, struct _PDCLIB_file_t * stream ) +struct _PDCLIB_file_t * freopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restrict mode, struct _PDCLIB_file_t * _PDCLIB_restrict stream ) { /* FIXME: This is ad-hoc (to make the vprintf() testdriver work), and must be checked. */ /* FIXME: If filename is NULL, change mode. */