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 Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strrev( char *s1 );
    char *_strrev( char *s1 );
    char __far *_fstrrev( char __far *s1 );
    #include <wchar.h>
    wchar_t *_wcsrev( wchar_t *s1 );
    #include <mbstring.h>
    unsigned char *_mbsrev( unsigned char *s1 );
    unsigned char __far *_fmbsrev( unsigned char __far *s1 );

Description:
    The strrev function replaces the string s1 with a string whose
    characters are in the reverse order.

    The _strrev function is identical to strrev.  Use _strrev for ANSI/ISO
    naming conventions.

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

    The _wcsrev function is a wide-character version of strrev that operates
    with wide-character strings.

    The _mbsrev function is a multibyte character version of strrev that
    operates with multibyte character strings.

    The _fmbsrev function is a data model independent form of the _mbsrev
    function that accepts far pointer arguments.  It is most useful in mixed
    memory model applications.

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

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

    char source[] = { "A sample STRING" };

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

    produces the following:

    A sample STRING
    GNIRTS elpmas A
    A sample STRING

Classification:
    WATCOM

_strrev conforms to ANSI/ISO naming conventions

Systems:
     strrev - All, Netware

    _strrev - All, Netware
    _fstrrev - All
    _wcsrev - All
    _mbsrev - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32
    _fmbsrev - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32

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