IT
mkdir1.c
kio467
2014. 10. 1. 17:30
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
int main(int ac, char* av[])
{
int result;
if(ac >= 2)
{
result = mkdir(av[1], 0777);
if ( result == -1)
perror(av[1]);
else if (result == 0)
printf("success wwwwwwwwwwwwwwww\n");
}
return 0;
}