23.06.2018, 14:28
You call strlen many times.
pawn Код:
for (new i = 0, j = strlen(text); i < j; i++)
{
if ('a' <= text[i] <= 'z')
{
text[i] = toupper(text[i]); // or text[i] -= 32;
break;
}
}