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 *strset( char *s1, int fill );
    char __far *_fstrset( char __far *s1, int fill );

Description:
    The strset and _fstrset functions fill the string pointed to by s1 with
    the character fill.  The terminating null character in the original
    string remains unchanged.

    The _fstrset function is a data model independent form of the strset
    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:
    strnset, _fstrnset

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

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

    void main()
      {
        printf( "%s\n", source );
        printf( "%s\n", strset( source, '=' ) );
        printf( "%s\n", strset( source, '*' ) );
      }

    produces the following:

    A sample STRING
    ===============
    ***************

Classification:
    WATCOM

Systems:
     strset - All

    _fstrset - All

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