tolower output
#8

Hi
pawn Code:
stock xToLower(string[])
{
new output[128];
if(strlen(string) > 128)
{
print("Input is too long! Max: 128 signs");
return 1;
}

for(new char = 0; char < strlen(string); char++)
{
format(output, 128, "%s%c", output, tolower(string[char]));
}
return output;
}
Maybe this?
Usage:
pawn Code:
xToLower(string[]);
Example:
pawn Code:
new String[12];
format(String, 12, "aCAUiFIUA");
printf("%s",xToLower(String));
Greetz,
LetsOWN
Reply


Messages In This Thread
tolower output - by Dotayuri - 13.02.2013, 16:43
Re: tolower output - by Shabi RoxX - 13.02.2013, 16:48
Re: tolower output - by Dotayuri - 13.02.2013, 16:52
Re: tolower output - by Dotayuri - 13.02.2013, 16:57
Re: tolower output - by Shabi RoxX - 13.02.2013, 16:59
Re: tolower output - by Mmartin - 13.02.2013, 16:59
Re: tolower output - by S0n1COwnsYou - 13.02.2013, 17:00
Re: tolower output - by LetsOWN[PL] - 13.02.2013, 17:03
Re: tolower output - by Dotayuri - 13.02.2013, 17:08
Re: tolower output - by Jefff - 13.02.2013, 19:16
Re: tolower output - by leong124 - 14.02.2013, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)