diff options
Diffstat (limited to 'firmware/common/strchr.c')
-rw-r--r-- | firmware/common/strchr.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/firmware/common/strchr.c b/firmware/common/strchr.c index de4585f758..96acf5edf6 100644 --- a/firmware/common/strchr.c +++ b/firmware/common/strchr.c | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | FUNCTION | 2 | FUNCTION |
3 | <<strchr>>---search for character in string | 3 | <<strchr>>---search for character in string |
4 | 4 | ||
5 | INDEX | 5 | INDEX |
6 | strchr | 6 | strchr |
7 | 7 | ||
8 | ANSI_SYNOPSIS | 8 | ANSI_SYNOPSIS |
9 | #include <string.h> | 9 | #include <string.h> |
10 | char * strchr(const char *<[string]>, int <[c]>); | 10 | char * strchr(const char *<[string]>, int <[c]>); |
11 | 11 | ||
12 | TRAD_SYNOPSIS | 12 | TRAD_SYNOPSIS |
13 | #include <string.h> | 13 | #include <string.h> |
14 | char * strchr(<[string]>, <[c]>); | 14 | char * strchr(<[string]>, <[c]>); |
15 | char *<[string]>; | 15 | char *<[string]>; |
16 | int *<[c]>; | 16 | int *<[c]>; |
17 | 17 | ||
18 | DESCRIPTION | 18 | DESCRIPTION |
19 | This function finds the first occurence of <[c]> (converted to | 19 | This function finds the first occurence of <[c]> (converted to |
20 | a char) in the string pointed to by <[string]> (including the | 20 | a char) in the string pointed to by <[string]> (including the |
21 | terminating null character). | 21 | terminating null character). |
22 | 22 | ||
23 | RETURNS | 23 | RETURNS |
24 | Returns a pointer to the located character, or a null pointer | 24 | Returns a pointer to the located character, or a null pointer |
25 | if <[c]> does not occur in <[string]>. | 25 | if <[c]> does not occur in <[string]>. |
26 | 26 | ||
27 | PORTABILITY | 27 | PORTABILITY |
28 | <<strchr>> is ANSI C. | 28 | <<strchr>> is ANSI C. |
@@ -30,7 +30,7 @@ PORTABILITY | |||
30 | <<strchr>> requires no supporting OS subroutines. | 30 | <<strchr>> requires no supporting OS subroutines. |
31 | 31 | ||
32 | QUICKREF | 32 | QUICKREF |
33 | strchr ansi pure | 33 | strchr ansi pure |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <string.h> | 36 | #include <string.h> |
@@ -59,8 +59,8 @@ QUICKREF | |||
59 | 59 | ||
60 | char * | 60 | char * |
61 | _DEFUN (strchr, (s1, i), | 61 | _DEFUN (strchr, (s1, i), |
62 | _CONST char *s1 _AND | 62 | _CONST char *s1 _AND |
63 | int i) | 63 | int i) |
64 | { | 64 | { |
65 | _CONST unsigned char *s = (_CONST unsigned char *)s1; | 65 | _CONST unsigned char *s = (_CONST unsigned char *)s1; |
66 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) | 66 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) |