[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One more C question




John Corey said:
> Aren't arrays kept contiguous in memory?  So do some math on the
> pointers, subtracting the last character in argv[argc-1] from argv[0]. 

I'd be real nervous about something like that being portable, even if
it were true.

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(618)398-7320             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.