When will fopen fail?
John Gordon
gordon at osiris.cso.uiuc.edu
Thu Apr 18 06:27:35 AEST 1991
markh at csd4.csd.uwm.edu (Mark William Hopkins) writes:
> Assuming all the subdirectories are there and writeable (on UNIX or
>MS-DOS), when does
> FP = fopen("...", "w");
>fail and return FP == NULL?
Well, it could fail if the process has reached the limit of
simultaneous open files. Or if the filename is not valid. Or if the
filename is actually a device.
---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu #include <disclaimer.h>
gordon at cerl.cecer.army.mil #include <clever_saying.h>
More information about the Comp.lang.c
mailing list