Arm/strtolower

From ASMBits

arm/strlenPrevious

Write a function that changes every upper-case character (A-Z) in a null-terminated string to lower case. The string (a pointer to an array of characters) will be passed as the first argument of the function. A string contains non-null characters and ends with a single byte with value 0.

Upper-case characters are defined as those with value between 'A' (0x41) and 'Z' (0x5a), inclusive. They should be changed to 'a' (0x61) through 'z' (0x7a). All other characters should remain unchanged.

There is no return value.

void strtolower (char *string);

Expected solution length: Around 15 lines.

Sample Input

"Hello World"

Sample Output

"hello world"

Write your solution here

Upload a source file...