EsaT_Input_Callback_Proc
Abstract
Callback: Called when the simulation requires input.
Syntax
<input_callback_proc_name> (buf_size, buf_ptr, state_ptr)
| Argument | Type | Description |
|---|---|---|
buf_size |
int * |
area to be filled with the length of the input string in buf_ptr |
buf_ptr |
char * |
area to be filled with the input string (512 characters maximum) |
state_ptr |
void * |
client data specified when the callback was registered |
Return Type
int
Return 1 if the input was read successfully; -1 otherwise.
Header
esa.h
Details
This callback function can be used to request input from a source other than standard input. It is registered by Esa_Text_Input_Callback_Register().