Re: K&R Exercise 6-2
- From: Pilcrow <pilcrow@xxxxxxx>
- Date: Sat, 30 Aug 2008 14:04:36 -0700
On Fri, 29 Aug 2008 13:17:54 GMT, spambait@xxxxxxxxxx (Doug Miller)
wrote:
In article <16OdnWCI1MoDaCrVnZ2dnUVZ_q_inZ2d@xxxxxxxxxxxxx>, pfiland@xxxxxxxxxxxxxx wrote:
However, the definition of "alphabetical order" according to strcmp,More specifically,
isn't exactly the same on different character sets.
In ASCII, a variable name like "A6A", comes before "ABA".
In EBCDIC, a variable name like "A6A", comes after "ABA".
Also uppercase letters come before lower case in ASCII,
but not in EBCDIC.
EBCDIC: a..z < A..Z < 0..9
ASCII: 0..9 < A..Z < a..z
Having been one who programmed on an EBCDIC machine, I wonder which
machines might still be using EBCDIC, given the ubiquity of ASCII?
.
- References:
- K&R Exercise 6-2
- From: mdh
- Re: K&R Exercise 6-2
- From: Eric Sosman
- Re: K&R Exercise 6-2
- From: pete
- Re: K&R Exercise 6-2
- From: Doug Miller
- K&R Exercise 6-2
- Prev by Date: Re: Help with understanding this please
- Next by Date: Re: C set-user-ID program wrapper for Perl script and security
- Previous by thread: Re: K&R Exercise 6-2
- Next by thread: Re: K&R Exercise 6-2
- Index(es):
Relevant Pages
|