Also, you're basically converting a local variable, and then returning it (but not using the return value). What you probably want to do is loop through the array (until you hit the null-terminator), and then convert each cell into lowercase. Right? In that case, you can omit the return value altogether, too...