Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. char* strdel1(char here[], int Num, int How)
  2. {
  3. short int len1 = len_for(here);
  4. char where1[n];
  5. if ( (Num + How) > len1)
  6. {
  7. How = -1*Num+len1;
  8. }
  9. short int count = Num + How;
  10.  
  11. while (count < len1)
  12. {
  13. where1[count - Num - How] = here[count];
  14. count++;
  15. }
  16. here[Num] = '\0';
  17. int len2 = len_for(here);
  18. where1[len1 - Num - How] = '\0';
  19. cat(here, where1);
  20. here[len1 - How] = '\0';
  21. len1 = len_for(here);
  22. here[len1] = '\0';
  23. return here;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement