Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
void f(const char *str, int slen) {
   	char *p = (char*)str;	
   int i;	
   for (i = 0; i < slen && str[i]; i++) {		
      if (str[i] != ' ') *p++ = str[i];	} } 
   }
}

Non-complaint Code Example 2

...