summaryrefslogtreecommitdiff
path: root/firmware/common/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/strlen.c')
-rw-r--r--firmware/common/strlen.c30
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/*
2FUNCTION 2FUNCTION
3 <<strlen>>---character string length 3 <<strlen>>---character string length
4 4
5INDEX 5INDEX
6 strlen 6 strlen
7 7
8ANSI_SYNOPSIS 8ANSI_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
12TRAD_SYNOPSIS 12TRAD_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
17DESCRIPTION 17DESCRIPTION
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
22RETURNS 22RETURNS
23 <<strlen>> returns the character count. 23 <<strlen>> returns the character count.
24 24
25PORTABILITY 25PORTABILITY
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
30QUICKREF 30QUICKREF
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
57size_t 57size_t
58_DEFUN (strlen, (str), 58_DEFUN (strlen, (str),
59 _CONST char *str) ICODE_ATTR; 59 _CONST char *str) ICODE_ATTR;
60 60
61size_t 61size_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;