|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
🔍 Safe string parsing utilities for integers, sizes, and protocol messages More...
Go to the source code of this file.
Functions | |
| asciichat_error_t | safe_parse_size_message (const char *message, unsigned int *width, unsigned int *height) |
| asciichat_error_t | safe_parse_audio_message (const char *message, unsigned int *num_samples) |
| asciichat_error_t | parse_long (const char *str, long *out_value, long min_value, long max_value) |
| asciichat_error_t | parse_ulong (const char *str, unsigned long *out_value, unsigned long min_value, unsigned long max_value) |
| asciichat_error_t | parse_ulonglong (const char *str, unsigned long long *out_value, unsigned long long min_value, unsigned long long max_value) |
| asciichat_error_t | parse_port (const char *str, uint16_t *out_port) |
| asciichat_error_t | parse_int32 (const char *str, int32_t *out_value, int32_t min_value, int32_t max_value) |
| asciichat_error_t | parse_uint32 (const char *str, uint32_t *out_value, uint32_t min_value, uint32_t max_value) |
🔍 Safe string parsing utilities for integers, sizes, and protocol messages
Definition in file parsing.c.
| asciichat_error_t parse_int32 | ( | const char * | str, |
| int32_t * | out_value, | ||
| int32_t | min_value, | ||
| int32_t | max_value | ||
| ) |
Definition at line 303 of file parsing.c.
References parse_long().
Referenced by strtoint_safe().
| asciichat_error_t parse_long | ( | const char * | str, |
| long * | out_value, | ||
| long | min_value, | ||
| long | max_value | ||
| ) |
Definition at line 98 of file parsing.c.
Referenced by parse_int32().
| asciichat_error_t parse_port | ( | const char * | str, |
| uint16_t * | out_port | ||
| ) |
Definition at line 251 of file parsing.c.
References parse_ulong().
Referenced by main(), parse_address_with_optional_port(), parse_ip_with_port(), parse_port_option(), validate_opt_port(), and validate_port_opt().
| asciichat_error_t parse_uint32 | ( | const char * | str, |
| uint32_t * | out_value, | ||
| uint32_t | min_value, | ||
| uint32_t | max_value | ||
| ) |
Definition at line 322 of file parsing.c.
References parse_ulong().
| asciichat_error_t parse_ulong | ( | const char * | str, |
| unsigned long * | out_value, | ||
| unsigned long | min_value, | ||
| unsigned long | max_value | ||
| ) |
Definition at line 139 of file parsing.c.
Referenced by main(), parse_port(), and parse_uint32().
| asciichat_error_t parse_ulonglong | ( | const char * | str, |
| unsigned long long * | out_value, | ||
| unsigned long long | min_value, | ||
| unsigned long long | max_value | ||
| ) |
Definition at line 181 of file parsing.c.
| asciichat_error_t safe_parse_audio_message | ( | const char * | message, |
| unsigned int * | num_samples | ||
| ) |
Definition at line 64 of file parsing.c.
| asciichat_error_t safe_parse_size_message | ( | const char * | message, |
| unsigned int * | width, | ||
| unsigned int * | height | ||
| ) |
Definition at line 16 of file parsing.c.