Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!watnot!cagordon From: cagordon@watnot.UUCP Newsgroups: comp.sys.cbm Subject: Re: C Power problems with argc and argv Message-ID: <12381@watnot.UUCP> Date: Sat, 24-Jan-87 09:51:55 EST Article-I.D.: watnot.12381 Posted: Sat Jan 24 09:51:55 1987 Date-Received: Sat, 24-Jan-87 15:59:44 EST References: <2755@ihlpg.UUCP> <1357@masscomp.UUCP> Reply-To: cagordon@watnot.UUCP (Chris Gordon) Distribution: na Organization: U. of Waterloo, Ontario Lines: 23 In article <1357@masscomp.UUCP> miket@masscomp.UUCP (Mike Truax) writes: >In article <2755@ihlpg.UUCP> cuda@ihlpg.UUCP writes: >>I wrote this short program to experiment with argv and argc. >>The output is always the same. Argc is zero and argv is >>empty (probably because of argc). Has anyone gotten these >>things to work? Does anyone know what the command syntax >>should be? I have tried both in and out of the shell. >I'm not familiar with C-power, but all the C compilers that I have used >need an " # " in front of the include. There is nothing wrong with the >code, mayby the problem isn't with argv & argc, but with the compiler >not giving an error when it doesen't have an " # " in front of things >like #include, #define, #ifdef etc... Does any one else out there care to >comment about this. Yes, in fact C-Power DOES require the '#' but I don't know what happens if it's not there (I always have it in) -- Chris Gordon UUCP: {abunchasystems}!watmath!watnot!cagordon U of Waterloo, Ont CompuServe: 72030,104 CSNET: cagordon%watnot@Waterloo.CSNET ------------------------------------------------------------------------------- "I always have fun 'cause I'm out of my mind!!!" - ZTP