This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / lib / crtdll / string / lasttok.c
diff --git a/lib/crtdll/string/lasttok.c b/lib/crtdll/string/lasttok.c
new file mode 100644 (file)
index 0000000..144f283
--- /dev/null
@@ -0,0 +1,12 @@
+#include <msvcrt/string.h>
+
+/*
+ * This is a CRTDLL internal function to return the lasttoken
+ * bit of data used by strtok. The reason for it's existence is
+ * so that CRTDLL can use MSVCRT's implementation of strtok.
+ */
+char** _lasttoken()
+{
+       static char *lasttoken = NULL;
+       return &lasttoken;
+}