/**************************************************************************** * Author: Aaron Lee * Purpose: do a directory minus a bunch of other directories ******************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include #include "filefind.h" #define MAX_ARRAY_SIZE 5000 #define ALL_FILES 0xff struct arrayrow { long total; long nextuse; } GlobalMinusArrayIndex, GlobalFileInputMinusListIndex; char GlobalMinusArray[MAX_ARRAY_SIZE][_MAX_FNAME]; char GlobalFileInputMinusList[MAX_ARRAY_SIZE][_MAX_FNAME]; // Globals char g_szinput_filename_full[_MAX_PATH]; char g_szinput_filename[_MAX_FNAME]; // prototypes int __cdecl main(int ,char *argv[]); void Do_Process(void); void aFileToMinus(char * TheFileToMinus); int GlobalMinusArray_Add(char * FileNameToAdd); void GlobalMinusArray_Fill(void); void GlobalMinusArray_Print(void); int GlobalMinusArray_Check(char * FileNameToCheck); void ShowHelp(void); //------------------------------------------------------------------- // purpose: main //------------------------------------------------------------------- int __cdecl main(int argc,char *argv[]) { int argno = 0; int nflags = 0; char filename_dir[_MAX_PATH]; char filename_only[_MAX_FNAME]; char filename_ext[_MAX_EXT]; filename_only[0]='\0'; // process command line arguments for(argno=1; argno