projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Implement strndup()
[platform/kernel/u-boot.git]
/
include
/
linux
/
string.h
diff --git
a/include/linux/string.h
b/include/linux/string.h
index
3606620
..
5d63be4
100644
(file)
--- 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