diff options
author | Dave Kleikamp <shaggy@austin.ibm.com> | 2005-06-02 13:12:57 -0400 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2005-06-02 13:12:57 -0400 |
commit | 7078253c085c037c070ca4e8bc9e9e7f18aa1e84 (patch) | |
tree | eaf56c1a77b0de6ee82e23cee4433b2c4a47e67e /lib/string.c | |
parent | 259692bd5a2b2c2d351dd90748ba4126bc2a21b9 (diff) | |
parent | 1e86d1c648508fd50e6c9960576b87906a7906ad (diff) |
Merge with /home/shaggy/git/linus-clean/
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'lib/string.c')
-rw-r--r-- | lib/string.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c index 4bb93ad23c60..d886ef157c12 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -65,6 +65,7 @@ EXPORT_SYMBOL(strnicmp); | |||
65 | * @dest: Where to copy the string to | 65 | * @dest: Where to copy the string to |
66 | * @src: Where to copy the string from | 66 | * @src: Where to copy the string from |
67 | */ | 67 | */ |
68 | #undef strcpy | ||
68 | char * strcpy(char * dest,const char *src) | 69 | char * strcpy(char * dest,const char *src) |
69 | { | 70 | { |
70 | char *tmp = dest; | 71 | char *tmp = dest; |
@@ -85,6 +86,10 @@ EXPORT_SYMBOL(strcpy); | |||
85 | * | 86 | * |
86 | * The result is not %NUL-terminated if the source exceeds | 87 | * The result is not %NUL-terminated if the source exceeds |
87 | * @count bytes. | 88 | * @count bytes. |
89 | * | ||
90 | * In the case where the length of @src is less than that of | ||
91 | * count, the remainder of @dest will be padded with %NUL. | ||
92 | * | ||
88 | */ | 93 | */ |
89 | char * strncpy(char * dest,const char *src,size_t count) | 94 | char * strncpy(char * dest,const char *src,size_t count) |
90 | { | 95 | { |
@@ -132,6 +137,7 @@ EXPORT_SYMBOL(strlcpy); | |||
132 | * @dest: The string to be appended to | 137 | * @dest: The string to be appended to |
133 | * @src: The string to append to it | 138 | * @src: The string to append to it |
134 | */ | 139 | */ |
140 | #undef strcat | ||
135 | char * strcat(char * dest, const char * src) | 141 | char * strcat(char * dest, const char * src) |
136 | { | 142 | { |
137 | char *tmp = dest; | 143 | char *tmp = dest; |
@@ -209,6 +215,7 @@ EXPORT_SYMBOL(strlcat); | |||
209 | * @cs: One string | 215 | * @cs: One string |
210 | * @ct: Another string | 216 | * @ct: Another string |
211 | */ | 217 | */ |
218 | #undef strcmp | ||
212 | int strcmp(const char * cs,const char * ct) | 219 | int strcmp(const char * cs,const char * ct) |
213 | { | 220 | { |
214 | register signed char __res; | 221 | register signed char __res; |
@@ -514,6 +521,7 @@ EXPORT_SYMBOL(memmove); | |||
514 | * @ct: Another area of memory | 521 | * @ct: Another area of memory |
515 | * @count: The size of the area. | 522 | * @count: The size of the area. |
516 | */ | 523 | */ |
524 | #undef memcmp | ||
517 | int memcmp(const void * cs,const void * ct,size_t count) | 525 | int memcmp(const void * cs,const void * ct,size_t count) |
518 | { | 526 | { |
519 | const unsigned char *su1, *su2; | 527 | const unsigned char *su1, *su2; |