Clearer doc.
authorMartin Pool <mbp@samba.org>
Tue, 15 Jan 2002 11:32:30 +0000 (11:32 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 15 Jan 2002 11:32:30 +0000 (11:32 +0000)
lib/compat.c

index e84da83cd4e7e30268b060118e4e3e0a33890b76..bf0137632d7be12567e9bcede4449c7096f48a6c 100644 (file)
 
 
 #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);