|
CHashTable 1
|
Argument parser API for interactive mode. More...
Data Structures | |
| struct | StrToIntResult |
| Result type for str_to_int() More... | |
Functions | |
| static StrToIntResult | str_to_int (const char *str) |
| Converts string to int with error reporting. | |
| static void | print_error (FILE *stream, const char *err) |
| Prints red-colored error. | |
| ParsedInput | get_input (FILE *input_stream, FILE *output_stream) |
| Prompts user for interactive mode command and arguments. | |
Argument parser API for interactive mode.
| ParsedInput get_input | ( | FILE * | input_stream, |
| FILE * | output_stream | ||
| ) |
Prompts user for interactive mode command and arguments.
| input_stream | Stream to get the input from |
| output_stream | Stream to print to |
|
static |
Prints red-colored error.
| stream | Stream to print to |
| err | Error string |
|
static |
Converts string to int with error reporting.
| str | String to convert |