In this statement,
i could replace '&' with '==' i guess.Code:int DirectoryExists(char *path) { DWORD attr = GetFileAttributes(path); if ( !(attr & FILE_ATTRIBUTE_DIRECTORY )) { return 0; } return 1; }
Is there any reason to prefer one over the other?