\* C file handling program to create a directory using mkdir() function *\
# include < stdio.h >
# include < stdlib.h >
# include < sys/types.h >
# include < sys/stat.h >
# include < unistd.h >
int main( )
{
char dirName[16] ;
int ret = 0 ;
printf("\n Enter directory name: ") ;
scanf("%s", dirName ) ;
ret = mkdir(dirName) ;
if (ret == 0)
printf(" Directory created successfully !\n") ;
else
printf(" Unable to create directory %s !\n", dirName) ;
return 0 ;
}