Created
August 9, 2014 17:02
-
-
Save Learath2/51ec1e9e9b43a870a583 to your computer and use it in GitHub Desktop.
K&R2 Exercise 2-9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*K&R2 Exercise 2-9 "lower"*/ | |
| #include <stdio.h> | |
| int lower(int); | |
| int lower(int c) | |
| { | |
| return (c >= 'A' && c <= 'Z') ? c + 'a' - 'A' : c; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment