summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-05-24 20:42:34 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-24 20:42:34 -0700
commit0297761dda3adaf03839f95e7b022d42f4d7f7d2 (patch)
treebf8ec8bd2cce76a514e6f51bde703c09c78ca8b3 /include/linux
parentb9fdbdca514c68074647a47222e144d66783bb7e (diff)
Add 'strlcpy()' implementation
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h
index ddf6fea31b47..0f9e63df583d 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -28,6 +28,9 @@ extern char * strcpy(char *,const char *);
#ifndef __HAVE_ARCH_STRNCPY
extern char * strncpy(char *,const char *, __kernel_size_t);
#endif
+#ifndef __HAVE_ARCH_STRLCPY
+size_t strlcpy(char *, const char *, size_t);
+#endif
#ifndef __HAVE_ARCH_STRCAT
extern char * strcat(char *, const char *);
#endif