Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* strdel1(char here[], int Num, int How)
- {
- short int len1 = len_for(here);
- char where1[n];
- if ( (Num + How) > len1)
- {
- How = -1*Num+len1;
- }
- short int count = Num + How;
- while (count < len1)
- {
- where1[count - Num - How] = here[count];
- count++;
- }
- here[Num] = '\0';
- int len2 = len_for(here);
- where1[len1 - Num - How] = '\0';
- cat(here, where1);
- here[len1 - How] = '\0';
- len1 = len_for(here);
- here[len1] = '\0';
- return here;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement