tu connais le nombre de programmes qui utilisent main(int argc, char *argv[], char *envp[]) ?
et le nombre de ceux qui utilisent getenv(char*) ?
5.1.2.2.1 Program startup
1 The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters:
int main(void) { /* ... */ }
or with two parameters (referred to here as argc and argv, though any names may be used, as they are local to the function in which they are declared):
int main(int argc, char *argv[]) { /* ... */ }
or equivalent;9) or in some other implementation-defined manner.
9) Thus, int can be replaced by a typedef name defined as int, or the type of argv can be written as char ** argv, and so on.

Thibaut (./182) :
D'accord avec vos deux remarques, mais ça ne m'a rien coûté de le rajouter. Ca m'a pris 1 mn.

#include <stdio.h>
int main (int nombredarguments, char *arguments[])
{
return strlen(arguments[1]);
}Tout simplement.

Thibaut (./192) :
OK. Si tu veux apprendre le C-tout-court, il vaut mieux que tu t'habitues à cette façon de coder, avec ce type de main.
?