Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!mcrware!jejones From: jejones@mcrware.UUCP (James Jones) Newsgroups: comp.os.os9 Subject: Re: do f*() report errors? Message-ID: <6250@mcrware.UUCP> Date: 29 Apr 91 09:51:20 GMT References: Reply-To: jejones@mcrware.UUCP (James Jones) Organization: Microware Systems Corp., Des Moines, Iowa Lines: 13 In article Sepp@ppcger.ppc.sub.org (Josef Wolf) writes: >I've got a little confused with fprintf() and fwrite(). They don't >report me that error 217 (file segment list full) occured. ferror() >didn't say anything, too. I rewrote the section, using write() and now >it seems to work nice. Is this a bug or a feature? If an error happens, it should be reported. fprintf() and fwrite() won't notice errors until they actually try to do I/O--if they're just filling up the buffer, they can't tell whether the segment list is full. That might cause them to not complain as early as one might expect, but they will complain eventually. James Jones