forgort to add these lol

This commit is contained in:
Tyler McGurrin 2024-12-16 05:49:31 -05:00
parent ef7dbf8925
commit 473dac80f2
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/*----------------*\
|Nanite OS |
|Copyright (C) 2024|
|Tyler McGurrin |
\*----------------*/
#include "ctype.h"
bool islower(char chr) {
return chr >= 'a' && chr <= 'z';
}
char toupper(char chr) {
return islower(chr) ? (chr - 'a' + 'A') : chr;
}

View File

@ -0,0 +1,10 @@
/*----------------*\
|Nanite OS |
|Copyright (C) 2024|
|Tyler McGurrin |
\*----------------*/
#pragma once
#include "stdint.h"
bool islower(char chr);
char toupper(char chr);