Last change
on this file since e225e77 was e225e77, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added missing includes and declarations.
|
-
Property mode
set to
100644
|
File size:
426 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 |
|
---|
[e225e77] | 8 | #include "ctype.h"
|
---|
| 9 |
|
---|
[7258c6a] | 10 | int8_t *str2lc(int8_t *s)
|
---|
[f40a309] | 11 | {
|
---|
[7258c6a] | 12 | register int8_t c;
|
---|
| 13 | register int8_t *r = s;
|
---|
[f40a309] | 14 |
|
---|
| 15 | while (c = *s)
|
---|
| 16 | *s++ = tolower(c);
|
---|
| 17 |
|
---|
| 18 | return(r);
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.