:: Re: [DNG] [OT] [Re: Studying C as t…
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Steve Litt
Datum:  
To: dng
Betreff: Re: [DNG] [OT] [Re: Studying C as told. (For help)
On Tue, 21 Jun 2016 17:55:52 +0100
KatolaZ <katolaz@???> wrote:

> On Tue, Jun 21, 2016 at 06:41:15PM +0200, Edward Bartolo wrote:
>
> [cut]
>
> >
> > And
> > << if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) >>
> >
> > would reduce to:
> >
> > if (isletter(c))
> >
>
> or, you could just use "isalpha(c)", as suggested also by Urban.


Everyone should keep in mind that when C was created in the early 70's,
ASCII and EBCDIC were the only games in town. Even when the second
edition of this book was written in 1995, assuming ASCII was perfectly
acceptable in the English speaking world, which at the time did most of
the computing.

When I learned Pascal at Santa Monica City College in 1983, teachers
took special care to teach us ord() and chr(), and a lot of our lab
exercises converted back and forth.

SteveT

Steve Litt
June 2016 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb