mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Added chrupper
This commit is contained in:
parent
7aff64740e
commit
26d5ffc14c
@ -33,6 +33,10 @@ int strlen(char s[]) {
|
||||
while (s[i] != '\0') ++i;
|
||||
return i;
|
||||
}
|
||||
char chrupper(char chr) {
|
||||
if((chr>96) && (chr<123)) chr ^=0x20;
|
||||
return chr;
|
||||
}
|
||||
|
||||
void append(char s[], char n) {
|
||||
int len = strlen(s);
|
||||
|
Loading…
Reference in New Issue
Block a user