repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add tst-wcstod-round
[glibc.git]
/
locale
/
tst-locname.c
blob
7eb71adfd89714bbff2378ab09689e1f98e377b9
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"