Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* get_path_bis(char **env)
- {
- char *str;
- int i = 0;
- int j = 0;
- int x = 0;
- while (env[i]) {
- char* temp = env[i];
- while(temp[j] != '\0')
- {
- if (temp[j] != 'P' && temp[j] != 'A' && temp[j] != 'T' && temp[j] != 'H') {
- if (temp[j] != '\n') {
- str[x] = env[i][j];
- }
- else break;
- }
- j++;
- }
- i++;
- }
- return (str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement