* [patch 3/8] string.linux-2.6.10/lib/c: documentation strncpy()
@ 2005-04-08 7:50 domen
2005-04-08 18:25 ` [patch 3/8] lib/c: " Domen Puncer
0 siblings, 1 reply; 2+ messages in thread
From: domen @ 2005-04-08 7:50 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, domen, wharms
this clarifys the documentation on the behavier of strncpy().
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/lib/string.c | 4 ++++
1 files changed, 4 insertions(+)
diff -L lib/c.bak -puN /dev/null /dev/null
diff -puN lib/string.c~comment-lib_string lib/string.c
--- kj/lib/string.c~comment-lib_string 2005-04-05 12:57:42.000000000 +0200
+++ kj-domen/lib/string.c 2005-04-05 12:57:42.000000000 +0200
@@ -85,6 +85,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)
{
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 3/8] lib/c: documentation strncpy()
2005-04-08 7:50 [patch 3/8] string.linux-2.6.10/lib/c: documentation strncpy() domen
@ 2005-04-08 18:25 ` Domen Puncer
0 siblings, 0 replies; 2+ messages in thread
From: Domen Puncer @ 2005-04-08 18:25 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, wharms
this clarifys the documentation on the behavier of strncpy().
From: walter harms <wharms@bfs.de>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
[Geez, again, next time i'll send them to myself first]
kj-domen/lib/string.c | 4 ++++
1 files changed, 4 insertions(+)
diff -puN lib/string.c~comment-lib_string lib/string.c
--- kj/lib/string.c~comment-lib_string 2005-04-05 12:57:42.000000000 +0200
+++ kj-domen/lib/string.c 2005-04-05 12:57:42.000000000 +0200
@@ -85,6 +85,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)
{
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-08 18:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08 7:50 [patch 3/8] string.linux-2.6.10/lib/c: documentation strncpy() domen
2005-04-08 18:25 ` [patch 3/8] lib/c: " Domen Puncer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox