awParseLongFromString
BrokerError awParseLongFromString(
char *start,
char **next,
char *terminator,
BrokerLong *output);
start | The string to be parsed. |
next | The character immediately following the character that caused parsing to terminate. This parameter is used for output. |
terminator | The character that caused parsing to terminate. This parameter is used for output. |
output | The extracted value. This parameter is used for output. |
Extracts a BrokerLong type from the string specified by start. Parsing will proceed until a non-numeric character is encountered in the string. The character that caused parsing to end is provide in terminator. You may set terminator to NULL if you do not care about the character that caused parsing to terminate.
Important:
This function will alter the contents of the string being parsed.
Possible BrokerError major codes | Meaning |
AW_ERROR_NULL_PARAM | The parameter output or start is NULL. |
AW_ERROR_FORMAT | The first non-space character encountered in string was not a digit. |
See also: