Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!bbn!diamond.bbn.com!mlandau From: mlandau@bbn.com (Matt Landau) Newsgroups: comp.unix.wizards Subject: Re: Writing to A NON-Existing File in \"C\" Message-ID: <10807@jade.BBN.COM> Date: 7 Apr 88 21:28:51 GMT References: <12860@brl-adm.ARPA> Reply-To: mlandau@bbn.com (Matt Landau) Organization: BBN Laboratories Incorporated, Cambridge, MA Lines: 12 In comp.unix.wizards (<12860@brl-adm.ARPA>), drears@ardec.arpa (Dennis G. Rears (FSAC)) writes: >Here is sample code that will allow you to do this. It will exit >if it can't open for appending any file. If it can not stat the >file it assumes it doesn't exist. You can be fancy and check errno >though. >#define NULL "/dev/null/" Probably want to pick another name for /dev/null, tho... :-) -- Matt Landau The happiest cold and lonely guy mlandau@bbn.com stuck in the Yukon without a dog.