SCR/SCR3.1/TP3/ex1-syscall.c

15 lines
200 B
C
Raw Normal View History

2023-09-21 20:18:32 +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);
}
}