-
Notifications
You must be signed in to change notification settings - Fork 0
/
min_pwd.c
executable file
·23 lines (20 loc) · 1.04 KB
/
min_pwd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* min_pwd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: potero <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/09 13:38:09 by potero #+# #+# */
/* Updated: 2022/06/09 13:43:49 by potero ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void min_pwd(t_myenv **myenv)
{
t_myenv *aux;
aux = *myenv;
while (ft_strcmp(aux->key, "PWD") != 0)
aux = aux->next;
printf("%s\n", aux->value);
}