Path: utzoo!attcan!uunet!bu.edu!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: DVItoPS on DECstation Keywords: fopen, binary-mode Message-ID: <14155@smoke.BRL.MIL> Date: 15 Oct 90 17:58:48 GMT References: <1990Oct13.204721.8027@maths.tcd.ie> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article <1990Oct13.204721.8027@maths.tcd.ie> tim@maths.tcd.ie (Timothy Murphy) writes: >and was surprised to find that the compiler didn't like > fopen(filename, "rb"); >It didn't object at compile-time, NO, the compiler does not parse the "rb" string; that is done by the fopen() function at run time. >but simply failed to open the file (returning NULL). Assuming that the file designated by "filename" should have been openable, apparently the C environment you're using does not provide a standard conforming implementation of fopen(). Complain to the vendor.