🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #4521

Re: errno.h problems in DEC 'C'

#4521
From: Dan Pop
Date: Fri, 04 Aug 1995 10:31
34 lines
1455 bytes
In <3vqrg1$bem@caip.rutgers.edu> halasz@caip.rutgers.edu writes:

>In article <danpop.807407394@rscernix>, Dan.Pop@mail.cern.ch (Dan Pop) writes
>! It's all your fault.  Here's the relevant part of the standard:
>! 
>!     4.1.3 Errors <errno.h>
>! 
>!     The header <errno.h> defines several macros, all relating to the
>!     reporting of error conditions.
>! 
>!        The macros are 
>!            ^^^^^^
>! 	     EDOM
>! 	     ERANGE
>! 
>!     which expand to distinct nonzero integral constant expressions; and 
>! 
>! 	     errno
>! 
>!     which expands to a modifiable lvalue that has type int...
>!           ^^^^^^^
>
>The standard looks wrong to me ....
>full of traps for the innocent.

The standard is, by definition, right :-)
C is not for the innocent :-)

Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID: <danpop.807532291@rscernix>
Path: arc1-ca.pugleaf.net!CERN.ch!rscernix!danpop
References: <3vo921$n4a@pheidippides.axion.bt.co.uk> <danpop.807407394@rscernix> <3vqrg1$bem@caip.rutgers.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.dec,comp.lang.c
Path: arc1-ca.pugleaf.net!CERN.ch!rscernix!danpop
From: Dan.Pop@mail.cern.ch (Dan Pop)
Subject: Re: errno.h problems in DEC 'C'
X-Nntp-Posting-Host: ues5.cern.ch
Message-ID: <danpop.807532291@rscernix>
Sender: news@news.cern.ch (USENET News System)
Organization: CERN European Lab for Particle Physics
X-Newsreader: NN version 6.5.0 #9 (NOV)
References: <3vo921$n4a@pheidippides.axion.bt.co.uk> <danpop.807407394@rscernix> <3vqrg1$bem@caip.rutgers.edu>
Date: Fri, 4 Aug 1995 10:31:31 GMT