Skip to contentSkip to conversation

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

PATCH In review [email protected] 1 participant 2 messages Apr 8, 2005

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

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

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

---

 kj-domen/lib/string.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -L lib/c.bak -puN /dev/null /dev/null

lib/string.c renamed from lib/string.c~comment-lib_string +4 -0
diff -puN lib/string.c~comment-lib_string lib/string.c
@@ -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)
 {

_

#1 lore raw

Re: [patch 3/8] lib/c: documentation strncpy()

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

From: walter harms <[email protected]>

---
[Geez, again, next time i'll send them to myself first]

 kj-domen/lib/string.c |    4 ++++
 1 files changed, 4 insertions(+)
lib/string.c renamed from lib/string.c~comment-lib_string +4 -0
diff -puN lib/string.c~comment-lib_string lib/string.c
@@ -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)
 {

_