char string library. There is a character string splitting function.

Revision:
0:c6bf0554e2f3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/StringUtil.cpp	Sun Dec 03 05:35:31 2017 +0000
@@ -0,0 +1,21 @@
+#include "StringUtil.h"
+#include "mbed.h"
+
+#define MAXITEM 20 // 数字が大きすぎるとメモリーオーバーエラーがでる
+
+StringUtil::StringUtil() {
+}
+
+int StringUtil::splitChar( char *str, const char *delim, char *outlist[] ){
+    char *tk;
+    int cnt = 0;
+
+    tk = strtok( str, delim );
+
+    while( tk != NULL && cnt < MAXITEM ) {
+        outlist[cnt++] = tk;
+        tk = strtok( NULL, delim );
+    }
+
+    return cnt;
+}
\ No newline at end of file