[BusyBox] [patch] new applet lpr

Mike Frysinger vapier at gentoo.org
Sun Jun 12 21:38:07 UTC 2005


On Sunday 12 June 2005 07:15 am, walter harms wrote:
> this is the first version of lpr. it has his own dir for now.

some notes:
 - use bb_xasprintf() instead of asprintf()
 - use xstrndup() instead of strndup()
 - if you combine all the fprintf() calls in make_controlfile() that will 
often save a bunch of space
 - handle_options() might be smaller if you use bb_getopt_ulflags()
 - the enum would be easier to read if you just defined them as 0x00, 0x01, 
0x02, 0x04, 0x08, etc...
-mike



More information about the busybox mailing list