shithub: scc

ref: af25b58d05b0700990057ce3f8c853bd43f2ece0
dir: /lib/c/stdio/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);
}