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 *strrev( char *s1 );
    char __far *_fstrrev( char __far *s1 );

Description:
    The strrev and _fstrrev functions replace the string s1 with a string
    whose characters are in the reverse order.

    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.

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

Systems:
     strrev - All

    _fstrrev - All

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