Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strupr( char *s1 );
    char __far *_fstrupr( char __far *s1 );

Description:
    The strupr and _fstrupr functions replace the string s1 with uppercase
    characters by invoking the  toupper function for each character in the
    string.

    The _fstrupr function is a data model independent form of the strupr
    function.  It accepts far pointer arguments and returns a far pointer.
     It is most useful in mixed memory model applications.

Returns:
    The address of the original string s1 is returned.

See Also:
    strlwr, _fstrlwr

Example:
    #include <stdio.h>
    #include <string.h>

    char source[] = { "A mixed-case STRING" };

    void main()
      {
        printf( "%s\n", source );
        printf( "%s\n", strupr( source ) );
        printf( "%s\n", source );
      }

    produces the following:

    A mixed-case STRING
    A MIXED-CASE STRING
    A MIXED-CASE STRING

Classification:
    WATCOM

Systems:
     strupr - All

    _fstrupr - All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson