Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - strnset http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 strnset

   Usage
   include <string.h>
   char *strnset(char *string,int ch,size_t n);

   Description
   Sets at most n characters of string to ch.

   Example
   #include <stdio.h>
   #include <string.h>
   char *string2 = "Example string";
   main()
   {
        printf("\nstrnset Example [%s]\n",strnset(string2,'x',9));
   }

   Return Value
   It returns string.


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