Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill tesh2 out of the source tree
[simgrid.git] / tools / tesh2 / src / explode.c
diff --git a/tools/tesh2/src/explode.c b/tools/tesh2/src/explode.c
deleted file mode 100644 (file)
index 63b7993..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <explode.h>\r
-\r char **\r explode(char separator, const char *string) \r
-{
-  \rint pos = 0;
-  \rint i, len = 1;
-  \rint number = 2;
-  \rchar **table;
-  \rconst char *p = string;
-  \r\rfor (i = 0; p[i] != '\0'; i++)
-    \rif (p[i] == separator)
-      \rnumber++;
-  \r\r\rtable = (char **) calloc(number, sizeof(char *));
-  \r\ri = 0;
-  \r\rwhile (*p++ != '\0')
-    \r {
-    \rif (*p == separator)
-      \r {
-      \rtable[i] = (char *) calloc(len + 1, sizeof(char));
-      \rstrncpy(table[i], string + pos, len);
-      \rpos += len + 1;
-      \rlen = 0;
-      \ri++;
-      \r}
-    \r
-    else
-      \rlen++;
-    \r}
-  \r\rif (len > 1)
-    \r {
-    \rtable[i] = (char *) calloc(len + 1, sizeof(char));
-    \rstrncpy(table[i], string + pos, len);
-    \r}
-  \r\r\rtable[++i] = NULL;
-  \r\rreturn table;
-\r}
-
-\r