2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/rtl/strtok.c
5 * PURPOSE: Unicode and thread safe implementation of strtok
6 * PROGRAMMER: David Welch (welch@mcmail.com)
11 /* INCLUDES *****************************************************************/
13 #include <internal/kernel.h>
14 #include <internal/linkage.h>
15 #include <ddk/ntddk.h>
17 #include <internal/debug.h>
20 /* FUNCTIONS *****************************************************************/
22 PWSTR
RtlStrtok(PUNICODE_STRING _string
, PWSTR _sep
,
25 * FUNCTION: Splits a string into tokens
27 * string = string to operate on
28 * if NULL then continue with previous string
29 * sep = Token deliminators
30 * temp = Tempory storage provided by the caller
31 * ARGUMENTS: Returns the beginning of the next token
40 string
= _string
->Buffer
;
54 if ((*string
)==(*sep
))