Skip to content

Commit b65b2ce

Browse files
committed
Add URL about strlcpy() creation history.
1 parent 8ef7287 commit b65b2ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/port/strlcpy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/port/strlcpy.c,v 1.1 2006/09/27 16:29:46 tgl Exp $
10+
* $PostgreSQL: pgsql/src/port/strlcpy.c,v 1.2 2006/10/02 23:58:59 momjian Exp $
1111
*
1212
* This file was taken from OpenBSD and is used on platforms that don't
1313
* provide strlcpy(). The OpenBSD copyright terms follow.
@@ -39,6 +39,7 @@
3939
* Copy src to string dst of size siz. At most siz-1 characters
4040
* will be copied. Always NUL terminates (unless siz == 0).
4141
* Returns strlen(src); if retval >= siz, truncation occurred.
42+
* Function creation history: http://www.gratisoft.us/todd/papers/strlcpy.html
4243
*/
4344
size_t
4445
strlcpy(char *dst, const char *src, size_t siz)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy