split2()
#
Split a string into two parts based on a delimiter.
Prototype
PUBLIC BOOL split2(
const char *string,
char delimiter,
char *part1,
int part1_size,
char *part2,
int part2_size
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The string to split. |
|
|
The character used to split the string. |
|
|
The buffer to store the first part of the split string. |
|
|
The size of the buffer for the first part. |
|
|
The buffer to store the second part of the split string. |
|
|
The size of the buffer for the second part. |
Return Value
Returns TRUE
if the string was successfully split into two parts, otherwise returns FALSE
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples