Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ttrdc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: net.lang.c Subject: Re: Re: fast code and no morals Message-ID: <720@ttrdc.UUCP> Date: Sat, 8-Feb-86 19:35:39 EST Article-I.D.: ttrdc.720 Posted: Sat Feb 8 19:35:39 1986 Date-Received: Tue, 11-Feb-86 06:49:42 EST References: <842@megaron.UUCP> <1820@brl-tgr.ARPA> Distribution: net Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 44 In article <3032@umcp-cs.UUCP>, chris@umcp-cs.UUCP (Chris Torek) writes: > >C is portable: > > /* echo */ > #include > > main(argc, argv) > register int argc; > register char **argv; > { > register int i; > > argc--; > for (i = 1; i <= argc; i++) > printf("%s%c", argv[i], i < argc ? ' ' : '\n'); > exit(0); > } >-- >In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415) What about a system where it is impossible to give command line arguments to a program, like the early-stone-age card reading IBM systems? Not all C runs on Unix ya know.... (Is C only allowed to run on machines that DO allow command line arguments? What does the proposed ANSI C standard say about this?) Would this program just get run with an argc of 0 in the case of a stone age system? As a matter of fact, must a system support both upper and lower case characters to support C? (Would Cyber-type machines with 6 bit character codes be out of the running?) Perhaps nobody these days would WANT such a sys- tem, rendering the point moot, but for the sake of argument :-), what if someone had such a system and wanted to keep on using it, but with C rather than say, Fortran (which would have no trouble with the absence of command line arguments and the single case of characters)? -- ------------------------------- Disclaimer: The views contained herein are | dan levy | yvel nad | my own and are not at all those of my em- | an engihacker @ | ployer or the administrator of any computer | at&t computer systems division | upon which I may hack. | skokie, illinois | -------------------------------- Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, vax135}!ttrdc!levy