| iMatix home page | << | < | > | >> |
![]() Version 2.11 |
#include "sflcons.h" int coputc (int character)
As putc() but sends output to the current console. This is by default the stdout device, unless you used console send() to direct console output to some function.
{ char buffer [2]; if (console_active) { if (console_file) { putc (character, console_file); fflush (console_file); } if (console_fct) { buffer [0] = (char) character; buffer [1] = '\0'; (console_fct) (buffer); } if (console_echo) { putc (character, stdout); fflush (stdout); } } return (character); }
| << | < | > | >> |
![]() |