05.08.2010, 10:19
(
Последний раз редактировалось RyDeR`; 17.09.2010 в 22:11.
)
Info
Just a simple piece of code which you can use to replace a char in a text.
Code
Post edited. Thanks to ******.
Usage
This will output:
Just a simple piece of code which you can use to replace a char in a text.
Code
pawn Код:
replaceChar(string[128], findchar, replacechar)
{
for(new i; string[i] != 0; ++i)
{
if(string[i] == findchar) string[i] = replacechar;
}
return string;
}
Usage
Код:
printf("%s", replaceChar("hi i'm just testing my function", ' ', '+'));
Код:
hi+i'm+just+testing+my+function