How to set string[] to uprercase?
#5

You must spread some Reputation around before giving it to ****** again.

pawn Код:
stock uppercase(string[])
{
    for(new i=0; i<(sizeof(string)); i++)
    {
        string[i] = toupper(string[i]);
    }
    return string;
}
when i try use "sizeof"
Quote:

indeterminate array size in "sizeof" expression

This will do:
pawn Код:
stock uppercase(string[])
{
    for(new i=0; i<strlen(string); i++)
    {
        string[i] = toupper(string[i]);
    }
    return string;
}
You must spread some Reputation around before giving it to VincentDunn again.
****** Thanks
VincentDunn Thanks
Reply


Messages In This Thread
How to set string[] to uprercase? - by Azazelo - 12.12.2012, 20:57
Re: How to set string[] to uprercase? - by ReneG - 12.12.2012, 21:53
Re: How to set string[] to uprercase? - by LarzI - 12.12.2012, 21:58
Re: How to set string[] to uprercase? - by ReneG - 12.12.2012, 22:15
Re: How to set string[] to uprercase? - by Azazelo - 12.12.2012, 22:29
Re: How to set string[] to uprercase? - by LarzI - 12.12.2012, 23:17
Re: How to set string[] to uprercase? - by Frant1kz - 12.12.2012, 23:58
Re: How to set string[] to uprercase? - by ReneG - 13.12.2012, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)