BUT2/SCR/TP03/ex1-syscall.c

15 lines
200 B
C
Raw Normal View History

2023-10-12 16:39:49 +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);
}
}