From: Ben Pfaff Date: Fri, 3 Sep 2004 06:46:08 +0000 (+0000) Subject: Add comments. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdadf2c634c86d566fb3ee39b88877c140a3f2f3;p=pintos-anon Add comments. --- diff --git a/src/lib/lib.c b/src/lib/lib.c index 35f8179..cc05816 100644 --- 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) {