Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int free_tab(char **tab)
- {
- int i;
- i = 0;
- while (tab[i])
- {
- free(tab[i]);
- i++;
- }
- free(tab);
- return (0);
- }
- #include "macro.h"
- void my_exit(char **input)
- {
- free_tab(input);
- exit(0);
- }
- #ifndef MACRO_H_
- #define MACRO_H_
- extern char **environ;
- typedef struct s_loop
- {
- char bool;
- char *input;
- } t_loop;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement