[OCLUG-devel] Lexicographically Sorted
Chris Berry
chris_berry-list-oclug-devel at jm-associates.com
Wed May 25 18:09:30 PDT 2005
That's interesting, and kind of scary, seems like every time I learn
something new about computers it just reveals a whole new layer of
ignorance on my part. Unfortuneately, the man pages you pointed to
don't define lexicographic ordering. I'm not looking for a strcmp
replacement, I'm doing an excercise as part of my C programming
training. I don't want someone to do the work for me, I just need to
know what lexicographical order is so I can figure out how to write the
algorithm.
Chris Berry
chris_berry at jm-associates.com
Information Advisory Manager
JM Associates
"There is nothing so useless as doing efficiently that which should not
be done at all." --Peter Drucker
Christopher Smith wrote:
> Christopher Smith wrote:
>
>> Chris Berry wrote:
>>
>>> No problem, except I haven't been able to figure out what
>>> lexicographic ordering is. I know how to sort alphabetically and
>>> ASCIIbetically, but lexicographically is a new one. When I looked on
>>> google, it seemed like everyone thought it was so obvious it didn't
>>> need to be explained. Can someone clue me in here?
>>
>>
>> man strcoll
>> man wcscoll (wide character version)
>
>
> For more details on the joys of POSIX locale's, I highly recommend The
> Open Group's web site:
>
> http://www.opengroup.org/onlinepubs/007908799/xbd/locale.html
>
> --Chris
More information about the OCLUG-devel
mailing list