|
Libecoli 0.11.1
Extensible COmmand LIne library
|
Nodes that match signed or unsigned integers. More...
Functions | |
| struct ec_node * | ec_node_int (const char *id, int64_t min, int64_t max, unsigned int base) |
| int | ec_node_int_getval (const struct ec_node *node, const char *str, int64_t *result) |
| struct ec_node * | ec_node_uint (const char *id, uint64_t min, uint64_t max, unsigned int base) |
| int | ec_node_uint_getval (const struct ec_node *node, const char *str, uint64_t *result) |
Nodes that match signed or unsigned integers.
Configuration Schema
Configuration Schema
| struct ec_node * ec_node_int | ( | const char * | id, |
| int64_t | min, | ||
| int64_t | max, | ||
| unsigned int | base ) |
Create a signed integer node.
| id | The node identifier. |
| min | The minimum valid value (included). |
| max | The maximum valid value (included). |
| base | The base to use for parsing. If 0, try to guess from prefix. |
| int ec_node_int_getval | ( | const struct ec_node * | node, |
| const char * | str, | ||
| int64_t * | result ) |
Get the value of a parsed signed integer.
| node | The integer node. |
| str | The string to parse. |
| result | Pointer where the result will be stored on success. |
| struct ec_node * ec_node_uint | ( | const char * | id, |
| uint64_t | min, | ||
| uint64_t | max, | ||
| unsigned int | base ) |
Create an unsigned integer node.
| id | The node identifier. |
| min | The minimum valid value (included). |
| max | The maximum valid value (included). |
| base | The base to use for parsing. If 0, try to guess from prefix. |
| int ec_node_uint_getval | ( | const struct ec_node * | node, |
| const char * | str, | ||
| uint64_t * | result ) |
Get the value of a parsed unsigned integer.
| node | The unsigned integer node. |
| str | The string to parse. |
| result | Pointer where the result will be stored on success. |