shithub: scc

ref: 3f7e54a705c0f7a6e6807285e00167f2af5e3d88
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);
}