[PATCH] documentation for strncpy()

this clarifies the documentation on the behavier of strncpy().

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
walter harms
2005-05-05 16:16:20 -07:00
committed by Linus Torvalds
parent ebe8b54134
commit 252795264d

View File

@@ -86,6 +86,10 @@ EXPORT_SYMBOL(strcpy);
* *
* The result is not %NUL-terminated if the source exceeds * The result is not %NUL-terminated if the source exceeds
* @count bytes. * @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) char * strncpy(char * dest,const char *src,size_t count)
{ {