Closed dbarrerap closed 4 years ago
Resolves Issue #16
Using the fact that every string ends with a \0, here I use isalpha() to check every character if its a letter, islower() to check if the character is lowercase and toupper() to upper-case the character.
gcc -o upper-case upper-case.c ./upper-case StRiNg_To_Be_UpPiFiEd
Expected output: STRING_TO_BE_UPPIFIED
Program expects a string as argument.
Resolves Issue #16
Description
Using the fact that every string ends with a \0, here I use isalpha() to check every character if its a letter, islower() to check if the character is lowercase and toupper() to upper-case the character.
How to run
gcc -o upper-case upper-case.c ./upper-case StRiNg_To_Be_UpPiFiEd
Expected output: STRING_TO_BE_UPPIFIED
Program expects a string as argument.