| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

coputc

#include "sflcons.h"
int
coputc (int character)

Synopsis

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.

Source Code - (sflcons.c)

{
    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);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation