tkt
This commit is contained in:
12
SCR3.1/TP3/Exo1/ex1-stdio.c
Normal file
12
SCR3.1/TP3/Exo1/ex1-stdio.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int main(){
|
||||
|
||||
printf("NON");
|
||||
if (fork()) {
|
||||
printf("OUI\n");
|
||||
}
|
||||
}
|
||||
14
SCR3.1/TP3/Exo1/ex1-syscall.c
Normal file
14
SCR3.1/TP3/Exo1/ex1-syscall.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
BIN
SCR3.1/TP3/Exo1/stdio
Executable file
BIN
SCR3.1/TP3/Exo1/stdio
Executable file
Binary file not shown.
BIN
SCR3.1/TP3/Exo1/syscall
Executable file
BIN
SCR3.1/TP3/Exo1/syscall
Executable file
Binary file not shown.
Reference in New Issue
Block a user