Currently viewing: GipsySoft » Front Page» Articles


Removes all occurrences of a string from another using a case insensitive search

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

Return value

Returns true if there were any occurrences of pcszSub within pszString


char szBuf[] = "One Fine day";
if( striremove( szBuf, "fine" ) )
	//	szBuf now == One  day"
	//	Ignores the case of "fine"


Click to view the source code

See also strremove