diff options
Diffstat (limited to 'firmware/common/strlen.c')
-rw-r--r-- | firmware/common/strlen.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/firmware/common/strlen.c b/firmware/common/strlen.c index 2e2c62eb75..4d33eafce6 100644 --- a/firmware/common/strlen.c +++ b/firmware/common/strlen.c | |||
@@ -1,26 +1,26 @@ | |||
1 | /* | 1 | /* |
2 | FUNCTION | 2 | FUNCTION |
3 | <<strlen>>---character string length | 3 | <<strlen>>---character string length |
4 | 4 | ||
5 | INDEX | 5 | INDEX |
6 | strlen | 6 | strlen |
7 | 7 | ||
8 | ANSI_SYNOPSIS | 8 | ANSI_SYNOPSIS |
9 | #include <string.h> | 9 | #include <string.h> |
10 | size_t strlen(const char *<[str]>); | 10 | size_t strlen(const char *<[str]>); |
11 | 11 | ||
12 | TRAD_SYNOPSIS | 12 | TRAD_SYNOPSIS |
13 | #include <string.h> | 13 | #include <string.h> |
14 | size_t strlen(<[str]>) | 14 | size_t strlen(<[str]>) |
15 | char *<[src]>; | 15 | char *<[src]>; |
16 | 16 | ||
17 | DESCRIPTION | 17 | DESCRIPTION |
18 | The <<strlen>> function works out the length of the string | 18 | The <<strlen>> function works out the length of the string |
19 | starting at <<*<[str]>>> by counting chararacters until it | 19 | starting at <<*<[str]>>> by counting chararacters until it |
20 | reaches a <<NULL>> character. | 20 | reaches a <<NULL>> character. |
21 | 21 | ||
22 | RETURNS | 22 | RETURNS |
23 | <<strlen>> returns the character count. | 23 | <<strlen>> returns the character count. |
24 | 24 | ||
25 | PORTABILITY | 25 | PORTABILITY |
26 | <<strlen>> is ANSI C. | 26 | <<strlen>> is ANSI C. |
@@ -28,7 +28,7 @@ PORTABILITY | |||
28 | <<strlen>> requires no supporting OS subroutines. | 28 | <<strlen>> requires no supporting OS subroutines. |
29 | 29 | ||
30 | QUICKREF | 30 | QUICKREF |
31 | strlen ansi pure | 31 | strlen ansi pure |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "config.h" | 34 | #include "config.h" |
@@ -56,11 +56,11 @@ QUICKREF | |||
56 | 56 | ||
57 | size_t | 57 | size_t |
58 | _DEFUN (strlen, (str), | 58 | _DEFUN (strlen, (str), |
59 | _CONST char *str) ICODE_ATTR; | 59 | _CONST char *str) ICODE_ATTR; |
60 | 60 | ||
61 | size_t | 61 | size_t |
62 | _DEFUN (strlen, (str), | 62 | _DEFUN (strlen, (str), |
63 | _CONST char *str) | 63 | _CONST char *str) |
64 | { | 64 | { |
65 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) | 65 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) |
66 | _CONST char *start = str; | 66 | _CONST char *start = str; |