MCPcopy Create free account
hub / github.com/Kitware/CMake / testString_toupper

Function testString_toupper

Source/kwsys/testString.c:85–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static int testString_toupper(void)
86{
87 int i = 0;
88 int j;
89 for (; i < 'a'; ++i) {
90 if ((j = kwsysString_toupper((char)i)) != i) {
91 printf("toupper(%d) failed: %d\n", i, j);
92 return 1;
93 }
94 }
95 for (; i <= 'z'; ++i) {
96 if ((j = kwsysString_toupper((char)i)) != i - 32) {
97 printf("toupper(%d) failed: %d\n", i, j);
98 return 1;
99 }
100 }
101 for (; i < 256; ++i) {
102 if ((j = kwsysString_toupper((char)i)) != i) {
103 printf("toupper(%d) failed: %d\n", i, j);
104 return 1;
105 }
106 }
107 return 0;
108}
109
110int testString(int argc, char* argv[])
111{

Callers 1

testStringFunction · 0.85

Calls 1

kwsysString_toupperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…