In <bv***********@av9195.comtv.ru> Victor Nazarov <vv*****@mail.ru> writes:
Assuming my locale has enough info about codepage and multi-byte
charecters, how should I compare (collate) multi-byte strings (strings
of multi-byte charecters with zero-byte at the end) in ISO C99?
strcoll(), being declared in <string.h>, doesn't seem to be appropriate
for what you want. But I could be wrong on that, the standard being less
than clear on the issue.
In the absence of a mbscoll() function, it seems that your only
alternative is to use mbstowcs() to convert your strings to wide
character strings and then use wcscoll() to compare them.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email:
Da*****@ifh.de