Stardew Engine
Loading...
Searching...
No Matches
String.c File Reference
#include "StardewString.h"
Include dependency graph for String.c:

Functions

int Str_Tokenize (char *string, char sep)
 replaces occurences of the char "sep" in the string with null characters and returns the resulting number of strings.
 
void Str_AdvanceToNextToken (char **pNextToken)
 advance a char pointer to the null terminator and then past its
 

Function Documentation

◆ Str_AdvanceToNextToken()

void Str_AdvanceToNextToken ( char **  pNextToken)

advance a char pointer to the null terminator and then past its

Parameters
pNextToken

◆ Str_Tokenize()

int Str_Tokenize ( char *  string,
char  sep 
)

replaces occurences of the char "sep" in the string with null characters and returns the resulting number of strings.

Parameters
string
sepseparator
Returns
number of tokens