Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *npi_converter(char *str)
- {
- int i;
- t_stack *elem;
- elem = NULL;
- i = 0;
- while (str[i])
- {
- if (str[i] >= '0' && str[i] <= '9')
- {
- my_put_in_list(&elem, &str[i]);
- i += my_strlen(str);
- }
- else if (str[i] == '+')
- {
- my_putstr(str[i]);
- }
- else
- i += 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement