Path: utzoo!utgpu!watmath!att!pacbell!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!swbatl!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.std.c Subject: Re: Error Return (was Re: (char *)(-1)) Keywords: error, flag, exception Message-ID: <5572@ficc.uu.net> Date: 7 Aug 89 13:36:29 GMT References: Organization: Xenix Support, FICC Lines: 14 In article <26998@agate.BERKELEY.EDU>, mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) writes: > #define errval(x) (errno = 0, (x), errno) This is how you get programs that spit out messages like: "peter@ficc.uu.net: Not a tty" I'll leave the whys and wherefores as an excersize for the reader, or you could just look it up in your comp.lang.c archives around February. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: peter@ficc.uu.net, +1 713 274 5180. | "The sentence I am now Personal: peter@sugar.hackercorp.com. `-_-' | writing is the sentence Quote: Have you hugged your wolf today? 'U` | you are now reading"