aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strupr.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strupr.c')
-rw-r--r--newlib/libc/string/strupr.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/newlib/libc/string/strupr.c b/newlib/libc/string/strupr.c
deleted file mode 100644
index 350618e..0000000
--- a/newlib/libc/string/strupr.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-FUNCTION
- <<strupr>>---force string to uppercase
-
-INDEX
- strupr
-
-ANSI_SYNOPSIS
- #include <string.h>
- char *strupr(char *<[a]>);
-
-TRAD_SYNOPSIS
- #include <string.h>
- char *strupr(<[a]>)
- char *<[a]>;
-
-DESCRIPTION
- <<strupr>> converts each character in the string at <[a]> to
- uppercase.
-
-RETURNS
- <<strupr>> returns its argument, <[a]>.
-
-PORTABILITY
-<<strupr>> is not widely portable.
-
-<<strupr>> requires no supporting OS subroutines.
-
-QUICKREF
- strupr
-*/
-
-#include <string.h>
-#include <ctype.h>
-
-char *
-_DEFUN (strupr, (s),
- char *s)
-{
- unsigned char *ucs = (unsigned char *) s;
- for ( ; *ucs != '\0'; ucs++)
- {
- *ucs = toupper(*ucs);
- }
- return s;
-}