summaryrefslogtreecommitdiff
path: root/firmware/common/strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/strchr.c')
-rw-r--r--firmware/common/strchr.c32
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/*
2FUNCTION 2FUNCTION
3 <<strchr>>---search for character in string 3 <<strchr>>---search for character in string
4 4
5INDEX 5INDEX
6 strchr 6 strchr
7 7
8ANSI_SYNOPSIS 8ANSI_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
12TRAD_SYNOPSIS 12TRAD_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
18DESCRIPTION 18DESCRIPTION
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
23RETURNS 23RETURNS
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
27PORTABILITY 27PORTABILITY
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
32QUICKREF 32QUICKREF
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
60char * 60char *
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__)