wr_putc.c 373 B

12345678910111213141516
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. #include "obj.h"
  7. extern int __sectionnr;
  8. void wr_putc(int ch)
  9. {
  10. struct fil *ptr = &__parts[PARTEMIT+getsect(__sectionnr)];
  11. if (ptr->cnt == 0) __wr_flush(ptr);
  12. ptr->cnt--; *ptr->pnow++ = ch;
  13. }