"depot M311"
This commit is contained in:
18
S3T_TP_00_REVISIONS/processus_2.c
Executable file
18
S3T_TP_00_REVISIONS/processus_2.c
Executable file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
gcc processus_2.c
|
||||
Exemple : ./a.out PATH
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
{
|
||||
fprintf (stderr, "Syntaxe : %s <nom-de-variable>\n", argv[0]);
|
||||
exit (1);
|
||||
}
|
||||
printf ("\n%s\n\n", getenv (argv[1]));
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user