Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2. int parse_user_input(char *user_input)
  3. {
  4. char **input;
  5. char **cmd;
  6. int eval;
  7.  
  8. eval = 0;
  9. input = ft_strsplit(trim_input(user_input), ';');
  10. while(input && (eval = eval_input((!(cmd = ft_strsplit(*input, ' '))) ? input : cmd )))
  11. input++;
  12. return (eval);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement