diff options
Diffstat (limited to 'sources/utils.c')
-rw-r--r-- | sources/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/utils.c b/sources/utils.c new file mode 100644 index 0000000..4aa76f8 --- /dev/null +++ b/sources/utils.c @@ -0,0 +1,14 @@ +#include <ctype.h> +#include "utils.h" + +const char *str_toupper(char *str) +{ + char *c = str; + + while (*c) { + *c = toupper(*c); + c++; + } + + return str; +} |