http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yes/yes.c?rev=1.8
-- Džen On 09/02/12 11:55pm, Lukas Fleischer wrote: > On Thu, Feb 09, 2012 at 10:52:57PM +0000, Connor Lane Smith wrote: > > On 9 February 2012 22:44, Lukas Fleischer <suckl...@cryptocrack.de> wrote: > > > Yeah. 'if (!argv[1]) argv[1] = "y";' and this gets a +1 from me :) > > > > It'd probably be more like, > > > > > const char *s = (argc < 2) ? "y" : argv[1]; > > > while(puts(s) != EOF); > > Agreed :) > > > > > cls >