/* * Copyright 2008, Mika Lindqvist. All rights reserved. * Distributed under the terms of the MIT License. */ #include #include char * strupr(char *str) { char *c = str; while (*c) { *c = toupper(*c); c++; } return str; }