Programming and international character sets.

Karl Heuer karl at haddock.ima.isc.com
Thu Nov 3 06:33:11 AEST 1988


In article <207 at jhereg.Jhereg.MN.ORG> mark at jhereg (Mark Colburn) writes:
>One problem is that, althougth the [C] standard supports multi-byte
>characters ..., no support is provided [for using them with <ctype.h>].
>Here are some suggestions:
>	int     wcislower(char *string)
>	char   *wctolower(char *string)

It's not necessary to pass/return pointers; there is an arithmetic type
"wchar_t" in ANSI C.  Thus it would be simpler to define these as follows:
	int     wcislower(wchar_t wc);
	wchar_t wctolower(wchar_t wc);

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
Followups to comp.std.{internat,c}.



More information about the Comp.std.c mailing list