// Open source directory dir_t* dir = open_dir(source_dir); // Find where dot is char* dot = strrchr(file, '.');