How can I convert a mixed case string to a lowercase string in C?
How to lowercase a string in C
clowercasestring
Related Topic
- Java – How to read / convert an InputStream into a String in Java
- Python – Convert bytes to a string
- Javascript – How to make the first letter of a string uppercase in JavaScript
- Javascript – How to replace all occurrences of a string in JavaScript
- Javascript – How to check whether a string contains a substring in JavaScript
- Bash – How to convert a string to lower case in Bash
- Java – How to convert a String to an int in Java
- Python – How to lowercase a string in Python
Best Answer
It's in the standard library, and that's the most straight forward way I can see to implement such a function. So yes, just loop through the string and convert each character to lowercase.
Something trivial like this:
or if you prefer one liners, then you can use this one by J.F. Sebastian: