Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awParse | awParseNumberFromString
 
awParseNumberFromString
BrokerError awParseNumberFromString(
char *start,
char **next,
char *terminator,
int *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 int 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 provided in terminator. The character immediately following the character that caused parsing to terminate is provided in next.
You may set terminator to NULL if you do not need to know which character caused parsing to terminate. You may set next to NULL if you do not need to know the character that follows the terminating character.
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: