summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-04-15 11:32:14 +0200
committerTom Warren <twarren@nvidia.com>2019-06-05 09:16:32 -0700
commit0c4e2658e8e8489956e48a6c9842c5d21b9593fe (patch)
treec4f1dfe07c5ef92c12f9dd5c6463bd2b33653612 /include/linux/string.h
parentebf30e8451f457aebc8232a674fa75823dd10d49 (diff)
lib: Implement strndup()
Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/linux/string.h')
-rw-r--r--include/linux/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h
index 3606620739..5d63be4ce5 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -94,6 +94,7 @@ size_t strcspn(const char *s, const char *reject);
#ifndef __HAVE_ARCH_STRDUP
extern char * strdup(const char *);
#endif
+extern char * strndup(const char *, size_t);
#ifndef __HAVE_ARCH_STRSWAB
extern char * strswab(const char *);
#endif