X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fmsvcrt%2Fwstring%2Fwlasttok.c;fp=lib%2Fmsvcrt%2Fwstring%2Fwlasttok.c;h=fcc80c06d0e71e6212a56db0b3ea02263a66bdd2;hp=0000000000000000000000000000000000000000;hb=a3df8bf1429570e0bd6c6428f6ed80073578cf4b;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/lib/msvcrt/wstring/wlasttok.c b/lib/msvcrt/wstring/wlasttok.c new file mode 100644 index 0000000..fcc80c0 --- /dev/null +++ b/lib/msvcrt/wstring/wlasttok.c @@ -0,0 +1,14 @@ +#include +#include +/* + * This is an MSVCRT internal function to return the lasttoken + * bit of data used by wcstok. The reason for it's existence is + * so that CRTDLL can use the wcstok source code in the same + * file. + */ +wchar_t** _wlasttoken() +{ + PTHREADDATA ptd = GetThreadData(); + assert(ptd); + return &(ptd->wlasttoken); +}