ASR31-valarche-2021/Exemples/04-Exec/recouvrante.c
2021-09-29 11:31:40 +02:00

19 lines
283 B
C

#include <stdio.h>
#include <stdlib.h>
extern char **environ;
int main(int argc, char *argv[]) {
int ind;
char **ptr;
for (ind = 0; ind < argc; ind++)
printf("%s\n", argv[ind]);
ptr = environ;
while (*ptr != NULL)
printf("%s\n", *ptr++);
return EXIT_SUCCESS;
}