X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Flibc%2Fctype.c;h=89e7b93aca192fbf3766b468bff6205eeaec9708;hp=9676441e6d2bcc4771424b114f49268e71594882;hb=81c11bdd80190ec319a82b0402173cfb65fcbf72;hpb=d1e8a437c1fab4535f82c4c214ec3330ac32e48d diff --git a/src/libc/ctype.c b/src/libc/ctype.c index 9676441..89e7b93 100644 --- a/src/libc/ctype.c +++ b/src/libc/ctype.c @@ -1,3 +1,20 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY, without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ #include "ctype.h" int isalnum(int c) @@ -52,5 +69,5 @@ int toupper(int c) int tolower(int c) { - return isupper(c) ? (c + ('A' - 'a')) : c; + return isupper(c) ? (c - ('A' - 'a')) : c; }