summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-07-05 17:37:04 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-07-05 17:37:04 +0000
commit7e44245be2fc151ec20ac54071c2b3b6fd98ea19 (patch)
treee4ff062568ad8030f2de16f315aca844ffa31a4d /include/string.h
parentb2d36db82ee6ce3779150f9b7670c397d9afd88d (diff)
Update header for strlcat and strlcpy.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index 6149955ef..d7501eb83 100644
--- a/include/string.h
+++ b/include/string.h
@@ -373,6 +373,14 @@ extern char *basename (__const char *__filename) __THROW;
#endif
#endif
+#ifdef __USE_BSD
+/* Two OpenBSD extension functions. */
+extern size_t strlcat(char *__restrict dst, const char *__restrict src,
+ size_t n) __THROW;
+extern size_t strlcpy(char *__restrict dst, const char *__restrict src,
+ size_t n) __THROW;
+#endif
+
__END_DECLS
#endif /* string.h */