dc88d66f1a
2004-06-09 Frank Ch. Eigler <fche@redhat.com> ctype support. * configure.in: Look for ctype header and glibc implementation. * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype array hooks for glibc 2.3. * mf-runtime.h.in: Wrap them. * mf-runtime.c (__mf_init): Leave marker regarding other ctype implementations. * testsuite/libmudflap.c/pass47-frag.c: New test. * configure, config.h.in: Regenerated. From-SVN: r82848
11 lines
263 B
C
11 lines
263 B
C
#include <stdlib.h>
|
|
#include <ctype.h>
|
|
|
|
int main ()
|
|
{
|
|
char* buf = "hello";
|
|
return ! ((toupper (buf[0]) == 'H' && toupper ('z') == 'Z' &&
|
|
tolower (buf[4]) == 'o' && tolower ('X') == 'x' &&
|
|
isdigit (buf[3])) == 0 && isalnum ('4'));
|
|
}
|