Search code examples
cstandardsansi-c

Is freopen() part of ansi c?


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.


Solution

  • freopen() function conforms to C89.

    And C89 is ANSI C.