I got an assignment in which I can use any method, as long as it is part of the ANSI - c standard. I want to use freopen
, except I don't know if its part of the standard. I have looked at "The C programming language" book's list of methods and it doesn't seem to be there, but it was in C89 so I doubt it isn't in ANSI.
Asked
Active
Viewed 81 times
1

Thomas Dickey
- 51,086
- 7
- 70
- 105

avivgood2
- 227
- 3
- 19
-
2The `freopen` is definitelly part of the C89 standard. – DaBler Mar 28 '20 at 06:04
-
cf. _Section 7.9.5.4 The freopen function_ in _ANSI/ISO 9899-1990_ – DaBler Mar 28 '20 at 06:06
-
And it still in C; C11 [§7.21.5.4 The `freopen` function](http://port70.net/~nsz/c/c11/n1570.html#7.21.5.4). – Jonathan Leffler Mar 28 '20 at 06:59
-
`freopen()` still in the current version of C: C17/18. – chux - Reinstate Monica Mar 28 '20 at 07:46