Guardian C Library Calls Reference Manual
fopen
3-48 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
fopen
The fopen function opens a file for ANSI I/O.
file_name
points to a string containing a valid file name.
access_mode
points to a string that specifies how you want to access the file. The possible values
for *access_mode are described under “Usage Guidelines.”
Return Value
points to the FILE structure denoting the opened file if the operation is successful;
otherwise, fopen returns the pointer value NULL.
#include <stdioh>
FILE *fopen(const char *file_name, const char *access_mode);