- Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by...
[reactos.git] / reactos / lib / sdk / crt / wstring / wlasttok.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/crt/??????
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10 #include <precomp.h>
11
12 #include <internal/tls.h>
13 #include <assert.h>
14
15 /*
16 * This is an MSVCRT internal function to return the lasttoken
17 * bit of data used by wcstok. The reason for it's existence is
18 * so that CRTDLL can use the wcstok source code in the same
19 * file.
20 */
21 wchar_t** _wlasttoken()
22 {
23 PTHREADDATA ptd = GetThreadData();
24 assert(ptd);
25 return &(ptd->wlasttoken);
26 }