1/* memset example */
2#include <stdio.h>
3#include <string.h>
4
5int main ()
6{
7 char str[] = "almost every programmer should know memset!";
8 memset (str,'-',6);
9 puts (str);
10 return 0;
11}
12
13// Output:
14// ------ every programmer should know memset!
1/* memset example */
2#include <stdio.h>
3#include <string.h>
4
5int main ()
6{
7 char str[] = "almost every programmer should know memset!";
8 memset (str,'-',6);
9 puts (str);
10 return 0;
11}
12
13Output: ------ every programmer should know memset!