Subversion Repositories Shiroi

Rev

Rev 29 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

/* $Id: char.c 8 2024-08-28 16:29:15Z nishi $ */

#include "char.h"

char toupper(char c){
        if('a' <= c && c <= 'z'){
                return c - 'a' + 'A';
        }
        return c;
}

int strlen(const char* str){
        int i;
        for(i = 0; str[i] != 0; i++);
        return i;
}