Chargen patch

Paul Fox pgf at brightstareng.com
Tue Nov 7 22:06:26 UTC 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.)

this was written in the spirit of an untested programming
tutorial, not as code that should be commited to the tree.

paul
=---------------------
 paul fox, pgf at brightstareng.com



More information about the busybox mailing list