diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-01-17 02:48:02 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-01-17 02:48:02 +0000 |
commit | d067ea68812d54b3dd88ad4cd7cd71553a590003 (patch) | |
tree | fead3eedc2f51e1862a73bd78f05b95d748cff71 /include/string.h | |
parent | 2c4cc2896b334216073348ecfa4434d4d4b8a481 (diff) |
Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.
Includes friendly linker warning to wake up those dumb enough to use it.
Committing for kettenis@, who ran away to the hills after writing it
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index 3e754a83bc2..7aada932480 100644 --- a/include/string.h +++ b/include/string.h @@ -1,4 +1,4 @@ -/* $OpenBSD: string.h,v 1.22 2011/07/03 18:51:01 jsg Exp $ */ +/* $OpenBSD: string.h,v 1.23 2012/01/17 02:48:01 guenther Exp $ */ /* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */ /*- @@ -113,6 +113,8 @@ int strerror_r(int, char *, size_t) #endif #if __POSIX_VISIBLE >= 200809 +char *stpcpy(char *, const char *); +char *stpncpy(char *, const char *, size_t); char *strndup(const char *, size_t); size_t strnlen(const char *, size_t); #endif |