2020-05-02 00:01:44 +02:00

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;
}