Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / strupr.c
bloba175d5c570b85b716ec95734ff0bade2ec77fc79
1 /*
2 FUNCTION
3 <<strupr>>---force string to uppercase
5 INDEX
6 strupr
8 SYNOPSIS
9 #include <string.h>
10 char *strupr(char *<[a]>);
12 DESCRIPTION
13 <<strupr>> converts each character in the string at <[a]> to
14 uppercase.
16 RETURNS
17 <<strupr>> returns its argument, <[a]>.
19 PORTABILITY
20 <<strupr>> is not widely portable.
22 <<strupr>> requires no supporting OS subroutines.
24 QUICKREF
25 strupr
28 #include <string.h>
29 #include <ctype.h>
31 char *
32 strupr (char *s)
34 unsigned char *ucs = (unsigned char *) s;
35 for ( ; *ucs != '\0'; ucs++)
37 *ucs = toupper(*ucs);
39 return s;