strset() function is used to set string to any other character.
Example:
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char name[50]="errorless-c.blogspot.com";
clrscr();
printf("orignal is %s",name);
printf("\nafter strset it is: %s",strset(name,'!'));
getch();
}
Example:
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char name[50]="errorless-c.blogspot.com";
clrscr();
printf("orignal is %s",name);
printf("\nafter strset it is: %s",strset(name,'!'));
getch();
}