19 lines
314 B
C
Executable File
19 lines
314 B
C
Executable File
/*
|
|
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;
|
|
}
|
|
|