/***************************************************** fallenhobbit@gmail.com fh_strtok(char* str, char* toks, int ln) str is she string to be tokenized toks is the string of tokens ln is the length of str *****************************************************/ #ifndef FH_TOKENIZE #define FH_TOKENIZE #include //first pass, str should be the string //second and subsequent passes, pass NULL for str char* fh_strtok(char* str, char* toks, int ln) { static char* curpos; //static to keep track of data between calls static int trkindx; int curindx=0; int tkln=lstrlen(toks); try { if(str) { curpos=0; trkindx=0; } if(trkindx>=ln)//if we have loved over the whole ...ok watching to much scifi { return 0; } if(str) { curpos=str;//marks each token with a NULL for(int i=0; i=ln)//if we have loved over the whole ...ok watching to much scifi { return 0; } if(str) { curpos=str;//marks each token with a NULL for(int i=0; i