Currently viewing: GipsySoft » Front Page» Articles

striremove

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

Example

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