OSDN Git Service

VER0.1.0 final?
[lib1stclass/main.git] / safe_strcat.c
index 1a009b7..7fd8013 100755 (executable)
@@ -1,8 +1,20 @@
+/*
+* See the file LICENSE for redistribution information.
+*
+* Copyright: 2010- 1stclass.co.jp.  All rights reserved.
+*
+* Created by Hajime Kurita
+*/
 #include <stdio.h>
 #include <string.h>
-#include "lib1stclass.h"
 
+#ifdef __cplusplus
+#include "1stclass.hpp"
+int firstclass::safe_strcat(char *dst, const char *append){
+#else
+#include "lib1stclass.h"
 int safe_strcat(char *dst, const char *append){
+#endif
   if( sizeof(append) >sizeof(dst) ){
     printf("\"%s\" is too long for this system.\n", append);
     return 1;