01.10.2011, 12:07
pawn Код:
main()
{
printf("result: %s", NoMinus("some-string-with-minus"));
}
stock NoMinus(string[])
{
for(new i; i < strlen(string); i++)
{
if(string[i] == '-')
{
strdel(string, i, i+1);
}
}
return string;
}
but it should return >>result: somestringwithminus<<