|
Last change
on this file since 7258c6a was 7258c6a, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
|
Use standard integer types.
|
-
Property mode
set to
100644
|
|
File size:
411 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | ============================================================================
|
|---|
| 3 | str2uc(s) -- converts string s to upper case ASCII
|
|---|
| 4 | Version 2 -- 1987-06-12 -- (c) Copyright 1987 -- D.N. Lynx Crowe
|
|---|
| 5 | ============================================================================
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | int8_t *str2uc(int8_t *s)
|
|---|
| 9 | {
|
|---|
| 10 | register int8_t c;
|
|---|
| 11 | register int8_t *r = s;
|
|---|
| 12 |
|
|---|
| 13 | while (c = *s)
|
|---|
| 14 | *s++ = toupper(c);
|
|---|
| 15 |
|
|---|
| 16 | return(r);
|
|---|
| 17 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.