Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. char *npi_converter(char *str)
  2. {
  3. int i;
  4. t_stack *elem;
  5.  
  6. elem = NULL;
  7. i = 0;
  8. while (str[i])
  9. {
  10. if (str[i] >= '0' && str[i] <= '9')
  11. {
  12. my_put_in_list(&elem, &str[i]);
  13. i += my_strlen(str);
  14. }
  15. else if (str[i] == '+')
  16. {
  17. my_putstr(str[i]);
  18. }
  19. else
  20. i += 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement