| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ..argv |
Hi All,
I was wondering why this occurs.. in my code I use the following
char chk_cmdline(int argc,char **argv,int *startpos)
[snipped]
*(argv++);
I was accessing varibles of the seperate argv's by using *(*argv).. and
found that if I did a plain argv++ it would only goto the next character in
argv, not the next array element...
although *(argv++) does move to the next member of the argv array.. problem
is that Borland generates the "Code in chk_cmdline has no effect"
warning, and points directly to that now the thing
is.. that as far as I can see, it does do something which is incrementing
to the next member of the array.. is this a bug with Tc++ 3.0?.. or am I
doing something wrong :)..I know I can disable it with -w- but I would
prefer not to because warnings can be handy :).. aswell as annoying :)
ÿ
Happy New Year,
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™.