#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <dirent.h> #include <errno.h> #include <string.h> int main(void) { char foldername[20]="lambda*10"; char filename[20]="fileno"; int test1=mkdir(foldername,S_IRWXU); if (test1<0) { printf("filed to make directory!!/n"); } char path[50] = "./"; strcat(path,foldername); strcat(path,"/"); strcat(path,filename); int test2=creat(path,S_IRWXU); if (test2<0) { printf("filed to create file!!/n"); } return 0; }