X-Git-Url: https://git.armaanb.net/?p=libacheam.git;a=blobdiff_plain;f=src%2Flibacheam%2Ftoupperw.c;fp=src%2Flibacheam%2Ftoupperw.c;h=99ac1025b8376b480148503ff8499c322c86c5f5;hp=0000000000000000000000000000000000000000;hb=45af2131d0dce416c9960f6dbfa309d8421026cd;hpb=319a897014101bcf7c9c0d17164cc676565d1193 diff --git a/src/libacheam/toupperw.c b/src/libacheam/toupperw.c new file mode 100644 index 0000000..99ac102 --- /dev/null +++ b/src/libacheam/toupperw.c @@ -0,0 +1,15 @@ +#include +#include +#include + +char * +toupperw(char *inp) +{ + char *tmp = calloc(strlen(inp), sizeof(char)); + strcpy(tmp, inp); + for (int i = 0; tmp[i]; i++){ + tmp[i] = toupper(tmp[i]); + } + return tmp; +} +