Skip to contentSkip to conversation

string.linux-2.6.10/lib/c: documentation strncpy()

KJ walter harms 1 participant 1 message Mar 29, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

hi list,
this clarifys the documentation on the behavier of strncpy().

re,
walter

lib/string.c renamed from lib/c.bak +4 -0
@@ -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)
 {

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors