projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5b41db
)
Add comments.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 3 Sep 2004 06:46:08 +0000
(06:46 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 3 Sep 2004 06:46:08 +0000
(06:46 +0000)
src/lib/lib.c
patch
|
blob
|
history
diff --git
a/src/lib/lib.c
b/src/lib/lib.c
index 35f8179c079322de3665b23bcd72d822e5c8662a..cc058160a35f0c28f0c662d936014994cae25d8f 100644
(file)
--- a/
src/lib/lib.c
+++ b/
src/lib/lib.c
@@
-106,7
+106,10
@@
memcmp (const void *a_, const void *b_, size_t size)
/* Copies string SRC to DST. If SRC is longer than SIZE - 1
characters, only SIZE - 1 characters are copied. A null
terminator is always written to DST, unless SIZE is 0.
- Returns the length of SRC. */
+ Returns the length of SRC.
+
+ See http://www.courtesan.com/todd/papers/strlcpy.html for
+ information on strlcpy(). */
size_t
strlcpy (char *dst, const char *src, size_t size)
{