소스 검색

Update header for strlcat and strlcpy.

Manuel Novoa III 22 년 전
부모
커밋
7e44245be2
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      include/string.h

+ 8 - 0
include/string.h

@@ -373,6 +373,14 @@ extern char *basename (__const char *__filename) __THROW;
 #endif
 #endif
 #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
 __END_DECLS
 
 
 #endif /* string.h  */
 #endif /* string.h  */