shithub: scc

ref: 258c23680f121b4681340e155a75e072531cc104
dir: /lib/c/src/putc.c/

View raw version

#include <stdio.h>
#undef putc

int
putc(int ch, FILE *fp)
{
	return (fp->wp >= fp->rp) ? __putc(c,fp) : *fp->wp++ = c;
}