| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ..argv |
On 15 Jan 96 22:40, Paul Edwards wrote to Kieran Haughey:
Hi Paul,
KH>>>> I was accessing varibles of the seperate argv's by using
*(*argv).. and
KH>>>> found that if I did a plain argv++ it would only goto
the next character
KH>>>> in argv, not the next array element...
KH>> My Sincerest apologies.. I originally thought that
argv++ didn't
PE> :-) The only way it could be otherwise is if there was a compiler
PE> bug, that generated different code for argv++ compared to *(argv++).
PE> The *() in *(argv++) is as useless as the "3" in the following
PE> program:
PE> #include
PE> int main(void)
PE> {
PE> printf("hello\n");
PE> 3;
PE> printf("there\n");
PE> return (0);
PE> }
I know :).. it took me a while to realise that by using *(argv++) I was
dereferencing argv and then incrementing it after I used it, but
considering that nothing used it, it just went on to argv++ :)
ÿ
Cheers,
Kieran
3:711/413.17{at}fidonet
@EOT:
--- MsgedSQ 3.30
* Origin: -=> The Last Stand Against Sanity <=- (3:711/413.17)SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 420 423 430 510 808 809 SEEN-BY: 711/932 934 712/515 713/888 714/906 800/1 7877/2809 @PATH: 711/413 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.