source: umon/main/glib/strtolower.c @ 24d5973

Last change on this file since 24d5973 was 87db514, checked in by Amar Takhar <amar@…>, on Apr 16, 2015 at 7:26:21 PM

Initial commit of the umon repository.

Prior to this three changes were made:

  • Remove umon_ prefix from parent directories.
  • Collapse main/target/ into main/
  • Remove ports/template/flashtest.scr.ucon script.
  • Property mode set to 100755
File size: 414 bytes
Line 
1#include "config.h"
2#include <ctype.h>
3#include "genlib.h"
4#include "stddefs.h"
5
6/* strtolower():
7 *      In-place modification of a string to be all lower case.
8 */
9char *
10strtolower(char *string)
11{
12        char *cp;
13
14        cp = string;
15        while(*cp) {
16                *cp = tolower(*cp);
17                cp++;
18        }
19        return(string);
20}
21
22char *
23strtoupper(char *string)
24{
25        char *cp;
26
27        cp = string;
28        while(*cp) {
29                *cp = toupper(*cp);
30                cp++;
31        }
32        return(string);
33}
Note: See TracBrowser for help on using the repository browser.