[Info-vax] C limitations, was: Re: VMS process communication

bill bill.gunshannon at gmail.com
Sun Apr 23 10:13:05 EDT 2023


On 4/23/2023 9:54 AM, Bob Eager wrote:
> On Sun, 23 Apr 2023 09:46:32 -0400, bill wrote:
> 
>> On 4/22/2023 7:47 PM, Arne Vajhøj wrote:
>>>
>>>
>>> True. In C the isdigit function would be much better than a range
>>> check.
>>>
>>>
>> A cute idea, but also a modern accretion. Early C didn't have it and as
>> much as people like to say comparing a char to it's numeric value is not
>> a good idea it was quite common at one time.  I know,
>> because I was the one tasked with porting some of this code to Primix
>> where the chars all had a different numeric value.  I don't know why
>> they did it, but they did.
> 
> It's in the K&R book dated 1978. So that's 'modern', then?

Interesting.  Says it's in the C library but I don't remember it and
man doesn't return an entry.

bill




More information about the Info-vax mailing list