Skip to content

Commit

Permalink
[PATCH] documentation for strncpy()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
walter harms authored and Linus Torvalds committed May 5, 2005
1 parent ebe8b54 commit 2527952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2527952

Please sign in to comment.