Chargen patch
Rob Landley
rob at landley.net
Tue Nov 7 13:54:06 PST 2006
On Tuesday 07 November 2006 10:41 am, Paul Fox wrote:
> unsigned char buf[1024];
>
> memset(buf, ch, sizeof(buf));
>
> while (nr >= sizeof(buf)) {
> write(1, buf, sizeof(buf));
Not that it matters, but I think you want some variant of full_write() out of
libbb. (Or perhaps xwrite(), if there is one.)
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
More information about the busybox
mailing list