Modules and Makefile
This commit is contained in:
13
src/common.c
Normal file
13
src/common.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "common.h"
|
||||
|
||||
char chrToLower(char chr) {
|
||||
if (chr >= 'A' && chr <= 'Z')
|
||||
return chr + 32;
|
||||
return chr;
|
||||
}
|
||||
|
||||
char chrToUpper(char chr) {
|
||||
if (chr >= 'a' && chr <= 'z')
|
||||
return chr - 32;
|
||||
return chr;
|
||||
}
|
||||
Reference in New Issue
Block a user