[comp.std.c] Programming and international character sets.

karl@haddock.ima.isc.com (Karl Heuer) (11/03/88)

In article <207@jhereg.Jhereg.MN.ORG> mark@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@haddock.isc.com), The Walking Lint
Followups to comp.std.{internat,c}.