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);
}
_______________________________________________
Cmdist mailing list
[email protected]
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to