shithub: scc

ref: 041d2d96655de6afaac6b20437df8897b03f6c92
dir: /src/libc/stdio/fputs.c/

View raw version
#include <stdio.h>

#undef fputs

int
fputs(const char * restrict bp, FILE * restrict fp)
{
	int r, ch;

	while ((ch = *bp++) != '\0')
		r = putc(ch, fp);

	return r;
}