[CM] Port output function receives string 1 char at a time
vladimir florentino
optimusvlad at gmail.com
Sat Nov 19 13:28:08 PST 2022
How come the port output function sends the callback 1 character at a
time, instead of sending the entire string with the length?
It's inconvenient for user defined callback to receive the string one
char at a time.
Is there a current setting to enable receiving the whole string+length
in the callback?
// in s7.c
static void function_write_string(s7_scheme *sc, const char *str,
s7_int len, s7_pointer pt)
{
for (s7_int i = 0; i < len; i++)
(*(port_output_function(pt)))(sc, str[i], pt);
}
More information about the Cmdist
mailing list