r1594: *** empty log message ***
[uffi.git] / examples / c-test-lib.c
1 #include <ctype.h>
2
3 int
4 cstring-count-upper (char* psz)
5 {
6   int count = 0;
7   while (*psz) {
8     if (isupper (*psz))
9       ++count;
10     ++psz;
11   }
12 }
13
14 void
15 cstring-to-upper (char* psz)
16 {
17   while (*psz) {
18     *psz = toupper (*psz);
19     ++psz;
20   }
21 }
22
23
24