Currently viewing: GipsySoft » Front Page» Articles


Removes all occurrences of a string from another.

bool strremove( char * pszString, const char *pcszSub )

Return value

Returns true if there were any occurrences of pcszSub within pszString


char szBuf[] = "One fine day";
if( strremove( szBuf, "fine" ) )
	//	szBuf now == One  day"


Click to view the source code

See also striremove