|
YAC 3.21.0
Yet Another Coupler
|


Go to the source code of this file.
Functions | |
| struct yac_param * | yac_param_str_new (const char *name, char **value_ptr, const char *default_value, int allow_NULL, int allow_empty, size_t max_str_len, int has_default, int is_defined) |
| Create a string parameter. | |
| struct yac_param * yac_param_str_new | ( | const char * | name, |
| char ** | value_ptr, | ||
| const char * | default_value, | ||
| int | allow_NULL, | ||
| int | allow_empty, | ||
| size_t | max_str_len, | ||
| int | has_default, | ||
| int | is_defined ) |
Create a string parameter.
| name | Name of the parameter |
| value_ptr | Pointer to the string value |
| default_value | Default string value (copied internally, ignored if has_default is false) |
| allow_NULL | Allow NULL value_ptr (1 = allow, 0 = error) |
| allow_empty | Allow empty string (value[0] == '\0') |
| max_str_len | Maximum allowed string length (excluding null terminator) |
| has_default | If true, parameter has a default value; if false, value is undefined until set |
| is_defined | If true, initial value is considered defined (can be NULL or empty depending on allow_NULL and allow_empty); if false, initial value is considered undefined and user must set it before getting |
Definition at line 176 of file param_str.c.
