16 lines
286 B
C
16 lines
286 B
C
/* binaire : recouvre2 */
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
char *envp[3];
|
|
|
|
int main() {
|
|
envp[0] = "X=AAAAA"; envp[1] = "Y=BBB"; envp[2] = NULL;
|
|
|
|
execle( "recouvrante", "recouvrante", "/tmp/ddd", NULL, envp);
|
|
|
|
perror("execle");
|
|
return EXIT_FAILURE;
|
|
}
|