mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Update string.c
This commit is contained in:
parent
6310e07623
commit
9be5ff45a2
@ -75,3 +75,8 @@ int strcmp(char s1[], char s2[]) {
|
||||
}
|
||||
return s1[i] - s2[i];
|
||||
}
|
||||
|
||||
char chrupper(char chr) {
|
||||
if((chr>96) && (chr<123)) chr ^=0x20;
|
||||
return chr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user