During clean compile warning, I met following code:
char *strcpy(char *dest, char *src)
{
unsigned int i;
while( dest[i] = src[i] )//assignment in condition
i++;
return dest;
}
the base function of the code should be OK, but compiler warn that the assignment in condition
, does this part of code have any potential risks? if this kind of warning need be cleaned?