I have a function in C, which contains lines below:
while (src=strstr(src,key)) {
memmove(src,src+strlen(key),1+strlen(src+strlen(key)));
}
When I run parasoft to check the function, I receive so many errors from these lines:
Not enclosed with brackets assignment was found in 'while' condition expression
LHS operand of '+' operator is 'unsigned long'
LHS operand of '+' operator is 'unsigned long'
LHS operand of '+' operator is 'unsigned long'
RHS operand of '+' operator is 'unsigned long'
RHS operand of '+' operator is 'unsigned long'
RHS operand of '+' operator is 'unsigned long'
Third param to 'memmove' function depends on second: src, key
Do you have any idea where theses errors come from?