shithub: scc

ref: fe1c4b0df744e9773a52356baaa91024c8e83e31
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;
}