if(*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '/')
if (*fwdPtr == '\\') *fwdPtr = '/'; if (*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '/')
void ReplaceDotMess(char* io_Path){    // Replace all /./ with a /    /* Stolen from netlib's mkparse.c.     *     * modifies a url of the form   /foo/../foo1  ->  /foo1     *                       and    /foo/./foo1   ->  /foo/foo1     */    char *fwdPtr = io_Path;    char *urlPtr = io_Path;        for(; *fwdPtr != '\0'; ++fwdPtr)    {        if(*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '/')        {            // remove ./            fwdPtr += 1;        }        else if(*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '.' &&                 (*(fwdPtr+3) == '/' || *(fwdPtr+3) == '\0'))        {            // remove foo/..             // reverse the urlPtr to the previous slash             if(urlPtr != io_Path)                 urlPtr--; // we must be going back at least by one             for(;*urlPtr != '/' && urlPtr != io_Path; urlPtr--)                ;  // null body             // forward the fwd_prt past the ../            fwdPtr += 2;        }        else        {            // copy the url incrementaly             *urlPtr++ = *fwdPtr;        }    }    *urlPtr = '\0';  // terminate the url }