Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!ox.com!math.fu-berlin.de!fauern!unido!rwthinf!marvin.e17.physik.tu-muenchen.de!berg From: berg@marvin.e17.physik.tu-muenchen.de (Stephen R. van den Berg) Newsgroups: comp.lang.c Subject: Re: When will fopen fail? Message-ID: <4250@rwthinf.UUCP> Date: 19 Apr 91 08:31:24 GMT References: <11079@uwm.edu> <1991Apr17.153144.4817@nestroy.wu-wien.ac.at> Sender: news@rwthinf.UUCP Lines: 20 Tom Kovar writes: >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? > ... file system full > ... user quota exceeded > ... file system mounted read only Or no memory left (fopen does a malloc!) -- Sincerely, berg@marvin.e17.physik.tu-muenchen.de Stephen R. van den Berg. "I code it in 5 min, optimize it in 90 min, because it's so well optimized: it runs in only 5 min. Actually, most of the time I optimize programs."