1/*The logic behind the function is to copy and place the ending part of string
2along with the deliminator '\0' to the position from where you want the
3"no_of_char" number of characters removed*/
4
5void delchar(char *string,int starting_pos, int no_of_char)
6{
7 if (( starting_pos + no_of_char - 1 ) <= strlen(x) )
8 {
9 strcpy(&x[starting_pos-1],&x[starting_pos + no_of_char-1]);
10 puts(x);
11 }
12}