forgort to add these lol
This commit is contained in:
parent
ef7dbf8925
commit
473dac80f2
14
src/bootloader/stage2/ctype.c
Normal file
14
src/bootloader/stage2/ctype.c
Normal 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;
|
||||||
|
}
|
||||||
10
src/bootloader/stage2/ctype.h
Normal file
10
src/bootloader/stage2/ctype.h
Normal 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);
|
||||||
Loading…
x
Reference in New Issue
Block a user