From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,72307b873fdffce6 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,72307b873fdffce6 X-Google-Attributes: gid1164f8,public From: Dan.Pop@mail.cern.ch (Dan Pop) Subject: Re: errno.h problems in DEC 'C' Date: 1995/08/04 Message-ID: #1/1 X-Deja-AN: 107424133 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <3vo921$n4a@pheidippides.axion.bt.co.uk> <3vqrg1$bem@caip.rutgers.edu> organization: CERN European Lab for Particle Physics newsgroups: comp.sys.dec,comp.lang.c In <3vqrg1$bem@caip.rutgers.edu> halasz@caip.rutgers.edu writes: >In article , 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 >! >! The header 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