Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!daemon From: daemon@rutgers.UUCP Newsgroups: comp.sys.cbm Subject: C Power argc/argv and &&/== precedence Message-ID: <853@rutgers.RUTGERS.EDU> Date: Tue, 27-Jan-87 16:56:50 EST Article-I.D.: rutgers.853 Posted: Tue Jan 27 16:56:50 1987 Date-Received: Wed, 28-Jan-87 21:42:02 EST Sender: daemon@rutgers.RUTGERS.EDU Lines: 19 From: prindle@NADC I know for sure that argc/argv work properly in C Power 2.9. Remember that argc will always be zero when running a stand-alone program (not under the shell) because you don't have any opportunity to specify arguments. But under the shell it works fine: prog first "second one" third will return argc==3 and argv[1] will be "first", argv[2] will be "second one", argv[3] will be "third". Can't imagine why it isn't working in your case. Re: "if (x1==0 && x2==0)" not working because of precedence of && relative to ==. I just can't believe this is a bug or umpteen programs I've compiled would not be working! But I'll check it out on C-Power 64 and C-Power 128 when I get a chance. Sincerely, Frank Prindle Prindle@NADC.arpa