projects
/
oweals
/
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()
[oweals/u-boot.git]
/
include
/
linux
/
string.h
diff --git
a/include/linux/string.h
b/include/linux/string.h
index 36066207392e9c478b1e7a08c389ba34196827a3..5d63be4ce5b065a1b81fd57ca6612f04716af7db 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