Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ULONG SplitStringA(char * szString, char ** pOut, ULONG MaxCount, char Splitter)
- {
- if (!pOut || !szString || !MaxCount)
- return 0;
- while (*szString == Splitter)
- ++szString;
- ULONG Ret = 0;
- while (Ret < MaxCount && *szString)
- {
- pOut[Ret] = szString;
- while (*szString && *szString != Splitter)
- ++szString;
- while (*szString == Splitter)
- {
- *szString = 0;
- ++szString;
- }
- ++Ret;
- }
- return Ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement