r305_dm/TP3/Exo1/ex1-syscall.c

15 lines
200 B
C
Raw Permalink Normal View History

2023-09-21 15:32:35 +02:00
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main(){
//printf("NON");
write(STDOUT_FILENO,"NON",3);
if (fork()) {
//printf("OUI\n");
write(STDOUT_FILENO,"OUI\n",4);
}
}