* [KJ] string.linux-2.6.10/lib/c: documentation strncpy()
@ 2005-03-29 7:34 walter harms
0 siblings, 0 replies; only message in thread
From: walter harms @ 2005-03-29 7:34 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
hi list,
this clarifys the documentation on the behavier of strncpy().
re,
walter
--- string.linux-2.6.10/lib/c.bak 2005-03-29 09:14:31.000000000 +0200
+++ linux-2.6.10/lib/string.c 2005-03-29 09:27:01.000000000 +0200
@@ -87,6 +87,10 @@
*
* 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)
{
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-29 7:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 7:34 [KJ] string.linux-2.6.10/lib/c: documentation strncpy() walter harms
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.