Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!apple!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.sys.apple2 Subject: Re: Q: Orca/C and stat.h Keywords: Orca/C, C, Unix Message-ID: <13816@smoke.BRL.MIL> Date: 11 Sep 90 17:31:02 GMT References: <923@dg.dg.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <923@dg.dg.com> bkahn@archive.webo.dg.com (Bruce Kahn) writes: > iomode = (stat(outfilename, &statbuf) == 0) ? "r+b" : "wb"; , struct stat, and stat() all do not exist in most non-POSIX (non-UNIX-like) systems. Rather than giving up, why not rewrite the code to do what was intended (which this code doesn't do right anyway), using standard C facilities.