Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.lang.c Subject: Re: When will fopen fail? Message-ID: <1991Apr17.202735.12427@ux1.cso.uiuc.edu> Date: 17 Apr 91 20:27:35 GMT References: <11079@uwm.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 18 markh@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@osiris.cso.uiuc.edu #include gordon@cerl.cecer.army.mil #include