char *dirNamePtr;char buff[256];struct stat st;
dirNamePtr = dirname(buff);
if( stat(dirNamePtr, &st) < 0 ) { // 디렉토리 생성}
by 공간사랑