Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site sjuvax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!cmu-cs-pt!cadre!psuvax1!burdvax!sjuvax!jss From: jss@sjuvax.UUCP (J. Shapiro) Newsgroups: net.lang.c Subject: Re: Re: c programming style Message-ID: <1199@sjuvax.UUCP> Date: Sat, 20-Jul-85 00:55:49 EDT Article-I.D.: sjuvax.1199 Posted: Sat Jul 20 00:55:49 1985 Date-Received: Mon, 22-Jul-85 04:16:46 EDT References: <11570@brl-tgr.ARPA> <935@teddy.UUCP> Organization: Haverford College, Haverford, Pa. Lines: 22 Teddy at GenRad writes: > stepping through the array of pointers can be done by by incrementing > a pointer: > > while (condition) /* or some other loop construct */ > . . . > > argv++; > > This will get us to the next pointer, whereas, > > argv = argv + 1; > > will NOT (unless by the happy happinstance that a pointer is exactly > the same size as a character!) My recollection is that the integer is supposed to get converted to the appropriate size pointer increment in such code. There are rules for handling this sort of thing. Though I may well be misreading, I think Teddy has this one wrong. Jon Shapiro