hi
i'm evaluating a string. ppos (char *) points to the beginning. it's assured that '"' or ' ' occures befor the beginning of the string is reached. however, whats wrong with this expression
it should get the lengt of a pattern till '"' or ' ' is reached. however it doesn't do anything but just increasing plen (size_t) and looping endless.Code:plen=0; while(*(ppos+plen) != ' ' || *(ppos+plen) != '"') ++plen; strncpy(line2,ppos,plen);
thanks