Liste des Groupes | Revenir à c arch |
On Sun, 8 Sep 2024 2:47:38 +0000, Tim Rentsch wrote:
>mitchalsup@aol.com (MitchAlsup1) writes:>
>On Sat, 7 Sep 2024 23:45:45 +0000, Tim Rentsch wrote:>
>
Another issue is that main() may not have the 3 defined arguments
and the containing environment is not supposed to complain when
argc, arv, and envp are unused or even unnamed as arguments.
The usual "Hello, World" program defines main() either with no
arguments
>
int
main(){
...
}
>
or with two arguments
>
int
main( int argc, char *argv[] ){
...
}
>
and in both cases main() has defined behavior and does not
violate the strictures of strictly conforming programs.
The Linux environment (crt0) calls main with 3 arguments.
>
Are you arguing that a program can be strictly conforming and
not be type safe at its call/return interfaces ??
Les messages affichés proviennent d'usenet.