diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-02-22 21:24:09 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-02-22 21:24:09 +0000 |
commit | 0b7dcd69c801a7439de5bfc53ae4005ec3846634 (patch) | |
tree | 42e62d3eec4ec49c7fd95ff01d5ca7d015c6fd45 /firmware/common/strncmp.c | |
parent | 3f5f3524d478743a4c2f470f0baf7b767ce8d1c2 (diff) | |
download | rockbox-0b7dcd69c801a7439de5bfc53ae4005ec3846634.tar.gz rockbox-0b7dcd69c801a7439de5bfc53ae4005ec3846634.zip |
Remove tabs in firmware path (taking into account the original spacing).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/strncmp.c')
-rw-r--r-- | firmware/common/strncmp.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/firmware/common/strncmp.c b/firmware/common/strncmp.c index 9801b7d924..b1d8d9d43a 100644 --- a/firmware/common/strncmp.c +++ b/firmware/common/strncmp.c | |||
@@ -1,31 +1,31 @@ | |||
1 | /* | 1 | /* |
2 | FUNCTION | 2 | FUNCTION |
3 | <<strncmp>>---character string compare | 3 | <<strncmp>>---character string compare |
4 | 4 | ||
5 | INDEX | 5 | INDEX |
6 | strncmp | 6 | strncmp |
7 | 7 | ||
8 | ANSI_SYNOPSIS | 8 | ANSI_SYNOPSIS |
9 | #include <string.h> | 9 | #include <string.h> |
10 | int strncmp(const char *<[a]>, const char * <[b]>, size_t <[length]>); | 10 | int strncmp(const char *<[a]>, const char * <[b]>, size_t <[length]>); |
11 | 11 | ||
12 | TRAD_SYNOPSIS | 12 | TRAD_SYNOPSIS |
13 | #include <string.h> | 13 | #include <string.h> |
14 | int strncmp(<[a]>, <[b]>, <[length]>) | 14 | int strncmp(<[a]>, <[b]>, <[length]>) |
15 | char *<[a]>; | 15 | char *<[a]>; |
16 | char *<[b]>; | 16 | char *<[b]>; |
17 | size_t <[length]> | 17 | size_t <[length]> |
18 | 18 | ||
19 | DESCRIPTION | 19 | DESCRIPTION |
20 | <<strncmp>> compares up to <[length]> characters | 20 | <<strncmp>> compares up to <[length]> characters |
21 | from the string at <[a]> to the string at <[b]>. | 21 | from the string at <[a]> to the string at <[b]>. |
22 | 22 | ||
23 | RETURNS | 23 | RETURNS |
24 | If <<*<[a]>>> sorts lexicographically after <<*<[b]>>>, | 24 | If <<*<[a]>>> sorts lexicographically after <<*<[b]>>>, |
25 | <<strncmp>> returns a number greater than zero. If the two | 25 | <<strncmp>> returns a number greater than zero. If the two |
26 | strings are equivalent, <<strncmp>> returns zero. If <<*<[a]>>> | 26 | strings are equivalent, <<strncmp>> returns zero. If <<*<[a]>>> |
27 | sorts lexicographically before <<*<[b]>>>, <<strncmp>> returns a | 27 | sorts lexicographically before <<*<[b]>>>, <<strncmp>> returns a |
28 | number less than zero. | 28 | number less than zero. |
29 | 29 | ||
30 | PORTABILITY | 30 | PORTABILITY |
31 | <<strncmp>> is ANSI C. | 31 | <<strncmp>> is ANSI C. |
@@ -33,7 +33,7 @@ PORTABILITY | |||
33 | <<strncmp>> requires no supporting OS subroutines. | 33 | <<strncmp>> requires no supporting OS subroutines. |
34 | 34 | ||
35 | QUICKREF | 35 | QUICKREF |
36 | strncmp ansi pure | 36 | strncmp ansi pure |
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include <string.h> | 39 | #include <string.h> |
@@ -60,9 +60,9 @@ QUICKREF | |||
60 | 60 | ||
61 | int | 61 | int |
62 | _DEFUN (strncmp, (s1, s2, n), | 62 | _DEFUN (strncmp, (s1, s2, n), |
63 | _CONST char *s1 _AND | 63 | _CONST char *s1 _AND |
64 | _CONST char *s2 _AND | 64 | _CONST char *s2 _AND |
65 | size_t n) | 65 | size_t n) |
66 | { | 66 | { |
67 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) | 67 | #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) |
68 | if (n == 0) | 68 | if (n == 0) |
@@ -71,7 +71,7 @@ _DEFUN (strncmp, (s1, s2, n), | |||
71 | while (n-- != 0 && *s1 == *s2) | 71 | while (n-- != 0 && *s1 == *s2) |
72 | { | 72 | { |
73 | if (n == 0 || *s1 == '\0') | 73 | if (n == 0 || *s1 == '\0') |
74 | break; | 74 | break; |
75 | s1++; | 75 | s1++; |
76 | s2++; | 76 | s2++; |
77 | } | 77 | } |
@@ -95,9 +95,9 @@ _DEFUN (strncmp, (s1, s2, n), | |||
95 | n -= sizeof (long); | 95 | n -= sizeof (long); |
96 | 96 | ||
97 | /* If we've run out of bytes or hit a null, return zero | 97 | /* If we've run out of bytes or hit a null, return zero |
98 | since we already know *a1 == *a2. */ | 98 | since we already know *a1 == *a2. */ |
99 | if (n == 0 || DETECTNULL (*a1)) | 99 | if (n == 0 || DETECTNULL (*a1)) |
100 | return 0; | 100 | return 0; |
101 | 101 | ||
102 | a1++; | 102 | a1++; |
103 | a2++; | 103 | a2++; |
@@ -111,9 +111,9 @@ _DEFUN (strncmp, (s1, s2, n), | |||
111 | while (n-- > 0 && *s1 == *s2) | 111 | while (n-- > 0 && *s1 == *s2) |
112 | { | 112 | { |
113 | /* If we've run out of bytes or hit a null, return zero | 113 | /* If we've run out of bytes or hit a null, return zero |
114 | since we already know *s1 == *s2. */ | 114 | since we already know *s1 == *s2. */ |
115 | if (n == 0 || *s1 == '\0') | 115 | if (n == 0 || *s1 == '\0') |
116 | return 0; | 116 | return 0; |
117 | s1++; | 117 | s1++; |
118 | s2++; | 118 | s2++; |
119 | } | 119 | } |