All pastes #352197 Raw Edit

Miscellany

public c v1 · immutable
·published 2007-02-12 17:29 UTC
rendered paste body
// ADD CODE HERE//point to first valuechar *first;//point to next valuechar *next;//point to the end of the linechar *lineend;// Make s point at the end of the linefor (lineend = string; *lineend != '\0'; lineend++);//loop through the string,finish at the end of the stringfor(first = string;*first != '\0';first++);{	next = string;	next = first + 1;	if((*first==' ') && (*next == ' '))	{		//**remove one of them some how**		*first++ = *next++;		first++;		next++;		*lineend--;	lineend = '\0';	}	else	{	first++;	next++;	}		}