🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #425

Re: Error Return (was Re: (char *)(-1))

#425
From: Peter da Silva
Date: Mon, 07 Aug 1989 13:36
14 lines
1205 bytes
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"
Technical Details
Message-ID: <5572@ficc.uu.net>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!pacbell!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!swbatl!texbell!sugar!ficc!peter
References: <GEOFF.89Jun11231924@onyx.cs.warwick.ac.uk| <2619@yunexus.UUCP| <26998@agate.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <GEOFF.89Jun11231924@onyx.cs.warwick.ac.uk| <2619@yunexus.UUCP| <26998@agate.BERKELEY.EDU>
Organization: Xenix Support, FICC
Lines: 14