-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_env_puti.c
22 lines (19 loc) · 1.03 KB
/
ft_env_puti.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_env_puti.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenamar <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/08 01:54:57 by abenamar #+# #+# */
/* Updated: 2023/08/08 01:59:45 by abenamar ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void ft_env_puti(t_list **env, char *key, int value)
{
char *str;
str = ft_itoa(value);
ft_env_puts(env, key, str);
free(str);
}