Function cwipc_sink_interact
Defined in File api.h
Function Documentation
-
char cwipc_sink_interact(cwipc_sink *sink, const char *prompt, const char *responses, int32_t millis)
User interaction (C interface).
- Parameters:
sink – The cwipc_sink object.
prompt – A prompt message to show to the user, explaining what the program wants.
responses – A string with all characters that can be typed by the user.
millis – The number of milliseconds to wait for interaction, 0 for no wait or -1 for forever.
- Returns:
The character typed by the user, or ‘\0’ if the user did not type anything, or if this sink does not support user interaction.