Guest User

Untitled

a guest
Jan 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. char *my_revstr(char *str)
  2. {
  3. int i;
  4. int j;
  5.  
  6. i = 0;
  7. j = my_strlen(str) - 1;
  8. while (i < j)
  9. {
  10. my_swapchar(&str[i], &str[j]);
  11. i = i + 1;
  12. j = j - 1;
  13. }
  14. return (str);
  15. }
Add Comment
Please, Sign In to add comment