MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / test

Function test

test/core/test_newlocale.c:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <stdio.h>
3
4void test(const char* name) {
5 locale_t loc = newlocale(LC_ALL_MASK, name, 0);
6 if (loc)
7 printf("newlocale '%s' succeeded\n", name);
8 else
9 printf("newlocale '%s' failed\n", name);
10 freelocale(loc);
11}
12
13int main(int argc, char* argv[]) {
14 test("C");

Callers 1

mainFunction · 0.70

Calls 3

printfFunction · 0.85
newlocaleFunction · 0.50
freelocaleFunction · 0.50

Tested by

no test coverage detected