X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,1be8daf5d9c34d6f X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2003-11-21 09:08:55 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!zen.net.uk!lovejoy.zen.co.uk.POSTED!not-for-mail Newsgroups: alt.ascii-art From: Mark Hill Subject: Re: Signature games References: Reply-To: Mark Hill X-OS: Slackware Linux current X-Linux-Counter-ID: 329679 X-Posted-in: alt.ascii-art X-Jabber-ID: leafnode@jabber.com X-PGP-Key-URL: http://mh.sdf-eu.org/markhill.gpg.asc Message-ID: <2003-11-21T17-03-44@heaney.example.org> User-Agent: slrn/0.9.8.0 (Linux) Date: 21 Nov 2003 17:08:54 GMT Lines: 21 Organization: Zen Internet NNTP-Posting-Host: 217.155.199.78 X-Trace: 1069434534 lovejoy.zen.co.uk 12696 217.155.199.78 X-Complaints-To: abuse@zen.co.uk Xref: archiver1.google.com alt.ascii-art:552 On Thu, 20 Nov 2003 13:53:31 +0100, Bart Dopheide wrote: > > #include > main(){char*s,c,y [99];glob_t g;int i,n,l ;n=0; srand (getpid()); > chdir( "/bin");glob( "*",0 ,0,&g );a:n =rand ()%g.gl_pathc > ;;s=g. gl_pathv [n]; for( l=0;s[l];++l) y[l]='.';n=0; y[l]= 0;;; > printf ("%s\n" ,y); b:c= getchar();if( isgraph(c)){ for(i =0;i > printf("%.*s\n",l ,y); if(n ==l){ puts( "Well done! \n"); goto > a;}}goto b;}/*##/ Hang man! !!!By Gamma input from: /bin/ :)*/ Very cool. BTW, *nix users can use indent(1) to unravel this. > Is this considered ascii-art? I would, in this case. But Seb3k has a point. -- Mark Hill (Yahoo address not read) GPG KeyID: 4A3B58AC