split Function

This function split SrcString and return Token

Syntax

int split(const char *SrcString, const char *Separator, const int Number, char *Token);

Parameters

SrcString - source string to split
Separator - separator string
Number - number of token to be returned ( start from 0)
Token - buffer to receive Token

Return Value

0 - if this Number is greater/smaller then SrcString has tokens
1 - if Token has valid value
-1 - if Token buffer has invalid address

Remarks

N/A

Requirements

string.h

Example

N/A