putc.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
putc.c (128B)
---
1 #include <stdio.h>
2
3 #undef putc
4
5 int
6 putc(int ch, FILE *fp)
7 {
8 return (fp->wp >= fp->rp) ? __putc(ch, fp) : (*fp->wp++ = ch);
9 }