Path: utzoo!utgpu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!boris.mscs.mu.edu!gill From: gill@boris.mscs.mu.edu (Vijay (Ender) Gill) Newsgroups: alt.hackers Subject: Re: Something fun Message-ID: <558@spool.mu.edu> Date: 7 Mar 91 13:36:17 GMT References: <4669@eastapps.East.Sun.COM> Sender: news@spool.mu.edu Organization: Marquette University - Department MSCS Lines: 24 Approved: gill@boris.mscs.mu.edu In article estdwha@warwick.ac.uk (CrisP) writes: [---deleted---] >> for (x = *argv; *argv; argv++) { >> for (p = *argv; *p; p++) { > ^^^^ >Shouldn't this be x? > [---deleted---] >> strcpy(x, "x"); ^^^^^^^^ --- This here is the key line. x is used as a placeholder, because argv is incremented, at the start, x --> argv[0]; >-------------------------------------------------------------------- >crisp@uk.ac.warwick.cs | I didn't do it. Nobody saw me do it. >estdwha@uk.ac.warwick.cu | You can't prove anything. - Bart Simpson. >-------------------------------------------------------------------- cheers -dicky gill (Violator) -gill@boris.mscs.mu.edu