WebClub-NITK / Hacktoberfest-2k19

19 stars 115 forks source link

Upper-case.c #254

Closed dbarrerap closed 4 years ago

dbarrerap commented 4 years ago

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.