[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: command line arguments'



You wrote:
> 
>     Date: Thu, 7 Jul 1994 12:08 CDT
>     From: Joachim Schrod <schrod@iti.informatik.th-darmstadt.de>
> 
>     CLISP is implemented in C. C has a defined way to pass command line
>     arguments, namely via the first two arguments of main(), canonically
>     called argc and argv.
> 
> argc and argv are UNIX conventions.

No.

main() of a C program in an `hosted environment' (i.e., not on a
toaster chip...) returns int and takes zero or two arguments.

RTFM.  	ANSI X3.159-1989 (aka ISO/IEC 9899:1990), Section 2.1.2.2.1,
	pp. 7-8.


Cheers,
	Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Joachim Schrod			Email: schrod@iti.informatik.th-darmstadt.de
Computer Science Department
Technical University of Darmstadt, Germany