From: Martin Pool Date: Tue, 15 Jan 2002 11:32:30 +0000 (+0000) Subject: Clearer doc. X-Git-Tag: v2.5.2pre1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7677b892a068d169a64fb699b6e41b0a342e390;p=thirdparty%2Frsync.git Clearer doc. --- diff --git a/lib/compat.c b/lib/compat.c index e84da83c..bf013763 100644 --- a/lib/compat.c +++ b/lib/compat.c @@ -97,8 +97,10 @@ #ifndef HAVE_STRLCPY -/* like strncpy but does not 0 fill the buffer and always null - terminates. bufsize is the size of the destination buffer */ +/* Like strncpy but does not 0 fill the buffer and always null + * terminates. bufsize is the size of the destination buffer. + * + * Returns the index of the terminating byte. */ size_t strlcpy(char *d, const char *s, size_t bufsize) { size_t len = strlen(s);