summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/strtok.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/strtok.c')
-rw-r--r--contrib/syslinux-4.02/com32/lib/strtok.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/strtok.c b/contrib/syslinux-4.02/com32/lib/strtok.c
new file mode 100644
index 0000000..d2e37bb
--- /dev/null
+++ b/contrib/syslinux-4.02/com32/lib/strtok.c
@@ -0,0 +1,15 @@
+/*
+ * strtok.c
+ */
+
+#include <string.h>
+
+char *strtok(char *s, const char *delim)
+{
+ static char *holder;
+
+ if (s)
+ holder = s;
+
+ return strsep(&holder, delim);
+}