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