JunkJumper cc7f3c53f2 ""
2020-09-04 14:11:51 +02:00

22 lines
401 B
C
Executable File

/// 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); }
/// ...
}