Last change
on this file since 0580615 was 0580615, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Point of no return.
|
-
Property mode
set to
100644
|
File size:
398 bytes
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | ============================================================================
|
---|
| 3 | str2lc(s) -- convert string s to lower case ASCII
|
---|
| 4 | Version 2 -- 1987-06-12 -- Copyright 1987 -- D.N. Lynx Crowe
|
---|
| 5 | ============================================================================
|
---|
| 6 | */
|
---|
| 7 |
|
---|
[0580615] | 8 | char *str2lc(char *s)
|
---|
[f40a309] | 9 | {
|
---|
| 10 | register char c;
|
---|
| 11 | register char *r = s;
|
---|
| 12 |
|
---|
| 13 | while (c = *s)
|
---|
| 14 | *s++ = tolower(c);
|
---|
| 15 |
|
---|
| 16 | return(r);
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.