diff options
| author | walter harms <[email protected]> | 2005-05-05 23:16:20 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-05-05 23:36:50 +0000 |
| commit | 252795264df50a6c9eee604d29989854d5558139 (patch) | |
| tree | 72ee9019ea2917fcc0feab1ded60d2dc72a7051f /lib/string.c | |
| parent | [PATCH] correctly name the Shell sort (diff) | |
| download | kernel-252795264df50a6c9eee604d29989854d5558139.tar.gz kernel-252795264df50a6c9eee604d29989854d5558139.zip | |
[PATCH] documentation for strncpy()
this clarifies the documentation on the behavier of strncpy().
Signed-off-by: Domen Puncer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
| -rw-r--r-- | lib/string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c index 5c8b55af0df6..d886ef157c12 100644 --- a/lib/string.c +++ b/lib/string.c @@ -86,6 +86,10 @@ EXPORT_SYMBOL(strcpy); * * The result is not %NUL-terminated if the source exceeds * @count bytes. + * + * In the case where the length of @src is less than that of + * count, the remainder of @dest will be padded with %NUL. + * */ char * strncpy(char * dest,const char *src,size_t count) { |
