ajout de replica
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
COLLEEN = colleen
|
||||||
|
|
||||||
|
COLLEEN: colleen.o
|
||||||
|
cc -o colleen colleen.o
|
||||||
|
|
||||||
|
colleen.o: colleen.c
|
||||||
|
cc -c colleen.c
|
||||||
|
|||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
/* Le commentaire en dehores du programme */
|
||||||
|
|
||||||
|
void the_fonction_needed(void){
|
||||||
|
printf("YO\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(void){
|
||||||
|
/* LA FONCTION PRINCIPALE */
|
||||||
|
the_fonction_needed();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
REPLICA = replica
|
||||||
|
|
||||||
|
REPLICA: replica.o
|
||||||
|
cc -o replica replica.o
|
||||||
|
|
||||||
|
replica.o: replica.c
|
||||||
|
cc -c replica.c
|
||||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,12 @@
|
|||||||
|
#include <fcntl.h>
|
||||||
|
int main(int argc, char** argv){
|
||||||
|
if (argc != 2)
|
||||||
|
return 0;
|
||||||
|
int fd = open(argv[1], O_RDONLY);
|
||||||
|
if (fd == -1)
|
||||||
|
{
|
||||||
|
printf("fail opening file\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user