🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #4520

Re: errno.h problems in DEC 'C'

#4520
From: halasz
Date: Thu, 03 Aug 1995 15:54
22 lines
1036 bytes
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.
Technical Details
Message-ID: <3vqrg1$bem@caip.rutgers.edu>
Path: arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mail
References: <3vo921$n4a@pheidippides.axion.bt.co.uk> <danpop.807407394@rscernix>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mail
From: halasz@caip.rutgers.edu
Newsgroups: comp.sys.dec,comp.lang.c
Subject: Re: errno.h problems in DEC 'C'
Date: 3 Aug 1995 11:54:41 -0400
Organization: Rutgers University
Distribution: world
Message-ID: <3vqrg1$bem@caip.rutgers.edu>
References: <3vo921$n4a@pheidippides.axion.bt.co.uk> <danpop.807407394@rscernix>
NNTP-Posting-Host: caip.rutgers.edu