OSDN Git Service

projects clean up 1
[pinoc/pinoc.git] / pinoc_x86 / lib / string.h
diff --git a/pinoc_x86/lib/string.h b/pinoc_x86/lib/string.h
new file mode 100644 (file)
index 0000000..bf1deee
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef __STRING_H_
+#define __STRING_H_
+
+// 超簡易標準ヘッダです。。。
+
+#include "typedef_c.h"
+
+void* memmove(void *_Dst, const void *_Src, size_t _Size)
+{
+       s1* Dst = (s1*) _Dst;
+       s1* Src = (s1*) _Src;
+
+       si si_cnt;
+       FOR(si_cnt, _Size)
+       {
+               Dst[si_cnt] = Src[si_cnt];
+       }
+}
+
+void* memset(void *_Dst, int _Val, size_t _Size)
+{
+       s1* Dst = (s1*)_Dst;
+
+       si si_cnt;
+       FOR(si_cnt, _Size)
+       {
+               Dst[si_cnt] = _Val;
+       }
+
+}
+
+#endif