OSDN Git Service

strncpy追加
[mochi/master.git] / src / include / string.h
index 54a37a6..1b5bf10 100644 (file)
@@ -1,14 +1,14 @@
 /******************************************************************************/
 /* src/include/string.h                                                       */
-/*                                                                 2018/11/24 */
-/* Copyright (C) 2016-2017 Mochi                                              */
+/*                                                                 2019/01/09 */
+/* Copyright (C) 2016-2019 Mochi                                              */
 /******************************************************************************/
 #ifndef _STRING_H_
 #define _STRING_H_
 /******************************************************************************/
 /* インクルード                                                               */
 /******************************************************************************/
-/* 共通ヘッダ */
+/* 標準ヘッダ */
 #include <stddef.h>
 
 
@@ -26,6 +26,10 @@ extern void *memset( void   *s,
 extern char *strcpy( char       *s1,
                      const char *s2  );
 
+extern char *strncpy( char       *s1,
+                      const char *s2,
+                      size_t     n    );
+
 extern size_t strlen( const char *s );