src/misc.c
/*
**	This function will simply look for a character in a string and if found,
**	replace it with another character.
*/
This function will simply look for a character in a string and if found,
replace it with another character.
This function will simply look for a character in a string and if found replace it with another character .
void		find_replace(char find, char replace, char *string)
{
	int	i;
	i = 0;
	while (string[i])
	{
		if (string[i] == find)
			string[i] = replace;
		i++;
	}
}
void find_replace ( char find , char replace , char * string ) { int i ; i = 0 ; while ( string [ i ] ) { if ( string [ i ] == find ) string [ i ] = replace ; i ++ ; } }
This function will simply look for a character in a string and if found,
replace it with another character.
This function will simply look for a character in a string and if found replace it with another character .