diff options
Diffstat (limited to 'case_lowers.c')
| -rw-r--r-- | case_lowers.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/case_lowers.c b/case_lowers.c new file mode 100644 index 0000000..208b3f5 --- /dev/null +++ b/case_lowers.c | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #include "case.h" | ||
| 2 | |||
| 3 | void case_lowers(s) | ||
| 4 | char *s; | ||
| 5 | { | ||
| 6 | unsigned char x; | ||
| 7 | while (x = *s) { | ||
| 8 | x -= 'A'; | ||
| 9 | if (x <= 'Z' - 'A') *s = x + 'a'; | ||
| 10 | ++s; | ||
| 11 | } | ||
| 12 | } | ||
