Subversion Repositories planix.SVN

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#include        <ctype.h>

toupper(int c)
{

        if(c < 'a' || c > 'z')
                return c;
        return (c-'a'+'A');
}

tolower(int c)
{

        if(c < 'A' || c > 'Z')
                return c;
        return (c-'A'+'a');
}