Detect something from a string and replace it with something else??
#4

Код:
stock SpaceChange(text[], ch = ' ')
{
	for(new i; text[i] != EOS; i++)
		if(text[i] == ch)
			text[i] = '_';
	return text;
}
new A[]="World is not enought";
printf("%s",SpaceChange(A));
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)