mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-06-13 12:54:24 +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;
|
while (s[i] != '\0') ++i;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
char chrupper(char chr) {
|
||||||
|
if((chr>96) && (chr<123)) chr ^=0x20;
|
||||||
|
return chr;
|
||||||
|
}
|
||||||
|
|
||||||
void append(char s[], char n) {
|
void append(char s[], char n) {
|
||||||
int len = strlen(s);
|
int len = strlen(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user