Currently viewing: GipsySoft » Front Page» Articles

strrepc

Replace all occurances of a character in a string with a different character

void strrepc( char *pszString, char cSearch, char cReplace );

Return value

none.

Example

char szBuf[] = "tooth";
strrepc( szBuf, 'o', 'e' );
//	szBuf would now be set to "teeth"

 

Click to view the source code

See also none