strupr, _fstrupr
raw OCR
Converts lowercase letters in a string to uppercase.
Defined in header <string.h>
Syntax
#include <string.h>
Near version: char *strupr(char *s);
Far version: char far * far _fstrupr(char far *s)
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Remarks
strupr converts lowercase letters (a-z) in string s to uppercase (A-Z). No other characters are changed.
Return value
strupr returns s.
See also
Example
include <stdio.h>
#include <string.h>
int main(void)
{
char *string = "abcdefghijklmnopqrstuvwxyz", *ptr;
/* converts string to uppercase characters */
ptr = strupr (string),•
printf("%s\n", ptr) ;
return 0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/string.h/strupr/
· short form /3.1/strupr/