14 char *a
= setlocale (LC_ALL
, "");
15 printf ("setlocale(LC_ALL, \"\") = %s\n", a
);
20 char *b
= setlocale (LC_CTYPE
, "");
21 printf ("setlocale(LC_CTYPE, \"\") = %s\n", b
);
25 char *c
= setlocale (LC_ALL
, NULL
);
26 printf ("setlocale(LC_ALL, NULL) = %s\n", c
);
31 if (strcmp (a
, c
) != 0)
33 puts ("*** first and third result do not match");
37 char *d
= setlocale (LC_NUMERIC
, "");
38 printf ("setlocale(LC_NUMERIC, \"\") = %s\n", d
);
42 if (strcmp (d
, "C") != 0)
44 puts ("*** LC_NUMERIC not C");
48 char *e
= setlocale (LC_ALL
, NULL
);
49 printf ("setlocale(LC_ALL, NULL) = %s\n", e
);
53 if (strcmp (a
, e
) != 0)
55 puts ("*** first and fifth result do not match");
59 char *f
= setlocale (LC_ALL
, "C");
60 printf ("setlocale(LC_ALL, \"C\") = %s\n", f
);
64 if (strcmp (f
, "C") != 0)
66 puts ("*** LC_ALL not C");
70 char *g
= setlocale (LC_ALL
, NULL
);
71 printf ("setlocale(LC_ALL, NULL) = %s\n", g
);
75 if (strcmp (g
, "C") != 0)
77 puts ("*** LC_ALL not C");
81 char *h
= setlocale (LC_CTYPE
, NULL
);
82 printf ("setlocale(LC_CTYPE, NULL) = %s\n", h
);
86 if (strcmp (h
, "C") != 0)
88 puts ("*** LC_CTYPE not C");
95 #define TEST_FUNCTION do_test ()
96 #include "../test-skeleton.c"