Lowercase to Uppercase
#8

I don't remember if there's any performance diffrence, but if you don't want to use this comma thingy, you should be able to just add return to the stock

pawn Код:
stock UpperWord(string[]) {
    new
        i = 0;
    while(EOS != string[i]) {
        if('a' <= string[i] <= 'z') string[i] -= 32;
        ++i;
    }
    return string;
}
Reply


Messages In This Thread
Lowercase to Uppercase - by JaKe Elite - 31.08.2013, 07:45
Re: Lowercase to Uppercase - by doreto - 31.08.2013, 07:48
Re: Lowercase to Uppercase - by Misiur - 31.08.2013, 07:49
Re: Lowercase to Uppercase - by [HiC]TheKiller - 31.08.2013, 07:52
Re: Lowercase to Uppercase - by JaKe Elite - 31.08.2013, 07:53
Re: Lowercase to Uppercase - by Misiur - 31.08.2013, 07:55
Re: Lowercase to Uppercase - by JaKe Elite - 31.08.2013, 07:58
Re: Lowercase to Uppercase - by Misiur - 31.08.2013, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)