/* EasyPLX beta version, first version Licensed under GNU GPL Copyleft Olle Bergkvist 2007 www.olle.tk e-mail: olle dot bergvist at yahoo dot se */ #include #include "config.h" int makeplx(char * buffer, char * entryptrs[], int entrylength[], char entrycount); int mystrcopy (char * to, char * from); int mystrcat (char * to, char * from); int mystrlen (char * from); int help (); int main(int argc, char *argv[]) { //i dont care about the indention here :p char * fileptrs [argc]; //this is a set of pointers that points to the same as argv points to char * listptrs [argc]; char * entryptrs[MAXNUM]; char * nameptr; char * outptr; char * plxptr; char filecount = 0; char listcount = 0; char entrycount = 0; char hasname = 0; char hasout = 0; char hasplxdir = 0; char hasdrive = 0; char haserror = 0; char ch; int entrylength[MAXNUM]; int n=0,m=0,tmp=0,pos=0,startp=0,endp=0,foundeof=0; // initialize paths char outdir[MAXLENGTH]; char plxdir[MAXLENGTH]; char outname[MAXLENGTH]; char fileext[]=FILE_EXT; char outpath[MAXLENGTH]; //for the files char plxbuf[MAXFILELENGTH]; char listbuf[MAXFILELENGTH]; char drive = 'E'; // process all args except the first one, which is the name of this program, and the last one, which is rubbish for (n=1;n