aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.c')
-rw-r--r--lib/string.c8
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
68char * strcpy(char * dest,const char *src) 69char * 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 */
89char * strncpy(char * dest,const char *src,size_t count) 94char * 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
135char * strcat(char * dest, const char * src) 141char * 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
212int strcmp(const char * cs,const char * ct) 219int 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
517int memcmp(const void * cs,const void * ct,size_t count) 525int memcmp(const void * cs,const void * ct,size_t count)
518{ 526{
519 const unsigned char *su1, *su2; 527 const unsigned char *su1, *su2;