Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!turnkey!orchard.la.locus.com!prodnet.la.locus.com!fafnir.la.locus.com!fafnir.la.locus.com!cjkuo From: cjkuo@locus.com (Chengi Jimmy Kuo) Newsgroups: comp.lang.c Subject: Re: When will fopen fail? Message-ID: Date: 18 Apr 91 21:22:00 GMT References: <11079@uwm.edu> <1FVk11w163w@phoenix.com> Organization: Locus Computing Corporation, Los Angeles, California Lines: 18 stanley@phoenix.com (John Stanley) writes: >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? > On MS-DOS, under TC 2.0, all the time. Perror returns "no such file or >directory". Because "..." is an illegal filename under DOS. -- cjkuo@locus.com "The correct answer to an either/or question is both!"