|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Environment variable utilities with stack-based prompt responses. More...
Go to the source code of this file.
Functions | |
| bool | env_pop_prompt_response (char *response_out, size_t response_size) |
| Pop the first response from ASCII_CHAT_QUESTION_PROMPT_RESPONSE stack. | |
| bool | env_has_prompt_response (void) |
| Check if ASCII_CHAT_QUESTION_PROMPT_RESPONSE has any responses available. | |
| bool | env_validate_prompt_response_format (void) |
| Validate ASCII_CHAT_QUESTION_PROMPT_RESPONSE format. | |
Environment variable utilities with stack-based prompt responses.
Definition in file env.c.
| bool env_has_prompt_response | ( | void | ) |
Check if ASCII_CHAT_QUESTION_PROMPT_RESPONSE has any responses available.
Definition at line 214 of file env.c.
| bool env_pop_prompt_response | ( | char * | response_out, |
| size_t | response_size | ||
| ) |
Pop the first response from ASCII_CHAT_QUESTION_PROMPT_RESPONSE stack.
Format: "response1;response2;response3" or "response1;response2;response3;" This function extracts the first response and updates the environment variable to contain the remaining responses.
Escaping: Use backslash to include literal semicolons or backslashes:
Examples:
| response_out | Buffer to store the popped response (must be at least 256 bytes) |
| response_size | Size of response_out buffer |
Definition at line 93 of file env.c.
| bool env_validate_prompt_response_format | ( | void | ) |
Validate ASCII_CHAT_QUESTION_PROMPT_RESPONSE format.
Valid formats:
Invalid formats:
Definition at line 250 of file env.c.