"depot M311"

This commit is contained in:
JunkJumper
2020-05-02 00:01:03 +02:00
parent f0c24b24e0
commit 16e128821d
83 changed files with 0 additions and 2045 deletions

View File

@@ -1,10 +0,0 @@
CFLAGS = -Wall -std=gnu99 -g
EXECUTABLES = demo \
myls
all : ${EXECUTABLES}
clean :
@rm -f core *.o *.out *~
@rm -f ${EXECUTABLES}

View File

@@ -1,19 +0,0 @@
/// M311 - Demonstration de base
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
int main (int argc, char* argv[])
{
int resultat;
if (argc != 2)
{ fprintf (stderr, "Syntaxe : %s <nom>\n\n", argv[0]); exit (1); }
if ((resultat = mkdir (argv[1], 0777)) == -1)
{ perror ("Echec mkdir"); exit (2); }
/// ...
}

View File

@@ -1,8 +0,0 @@
/// M311 - myls
#include <stdio.h>
int main (int argc, char* argv[])
{
/// ...
}