update for HEAD-2003091401
[reactos.git] / lib / msvcrt / string / lasttok.c
1 #include <msvcrt/internal/tls.h>
2 #include <msvcrt/assert.h>
3
4 /*
5  * This is an MSVCRT internal function to return the lasttoken
6  * bit of data used by strtok. The reason for it's existence is
7  * so that CRTDLL can use the strtok source code in the same
8  * file.
9  */
10 char** _lasttoken()
11 {
12         PTHREADDATA ptd = GetThreadData();
13         assert(ptd);
14         return &(ptd->lasttoken);
15 }