]> git.armaanb.net Git - libacheam.git/blob - src/libacheam/toupperw.c
Add tests, restructure repo, and add static target
[libacheam.git] / src / libacheam / toupperw.c
1 #include <ctype.h>
2 #include <stdlib.h>
3 #include <string.h>
4
5 char *
6 toupperw(char *inp)
7 {
8         char *tmp = calloc(strlen(inp), sizeof(char));
9         strcpy(tmp, inp);
10         for (int i = 0; tmp[i]; i++){
11                 tmp[i] = toupper(tmp[i]);
12         }
13         return tmp;
14 }
15