]> git.ipfire.org Git - thirdparty/glibc.git/blob - locale/tst-locname.c
hurd: Add no-op version of __res_enable_icmp [BZ #24047]
[thirdparty/glibc.git] / locale / tst-locname.c
1 #include <langinfo.h>
2 #include <locale.h>
3 #include <stdio.h>
4 #include <string.h>
5
6 static int
7 do_test (void)
8 {
9 const char *s = nl_langinfo (_NL_LOCALE_NAME (LC_CTYPE));
10 if (s == NULL || strcmp (s, "C") != 0)
11 {
12 printf ("incorrect locale name returned: %s, expected \"C\"\n", s);
13 return 1;
14 }
15
16 return 0;
17 }
18
19 #define TEST_FUNCTION do_test ()
20 #include "../test-skeleton.c"