/* Exercise 2.10 from "The C programming language" book by K&R */
#include <stdio.h>
/* convert c to low register; only ASCII */
int lower(int c)
{
return (c >= 'A' && c <= 'Z') ? c + 'a' - 'A': c;
}
int main(void)
{
printf("%c", lower('A'));
return 0;
}
----------