shithub: scc

ref: 435e07d3136a39d28016e829142b70315d059719
dir: /lib/c/putc.c/

View raw version
#include <stdio.h>
#undef putc

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