Horje
delete string function in c Code Example
delete string function in c
/*The logic behind the function is to copy and place the ending part of string
along with the deliminator '\0' to the position from where you want the 
"no_of_char" number of characters removed*/

void delchar(char *string,int starting_pos, int no_of_char)
{
  if (( starting_pos + no_of_char - 1 ) <= strlen(x) )
  {
    strcpy(&x[starting_pos-1],&x[starting_pos + no_of_char-1]);
    puts(x);
    }
}




C

Related
identifier bool is undefined in c Code Example identifier bool is undefined in c Code Example
fgets remove newline Code Example fgets remove newline Code Example
system(color ) Code Example system(color ) Code Example
c header file example Code Example c header file example Code Example
Futter Square Button Code Example Futter Square Button Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8