42_minishell/include/variables.h
2024-06-27 14:53:45 +02:00

28 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* variables.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/27 13:43:21 by mcolonna #+# #+# */
/* Updated: 2024/06/27 14:43:36 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef VARIABLES_H
# define VARIABLES_H
typedef struct s_variable
{
const char *name;
const char *value;
} t_variable;
// Set a variable to a new value.
void variables_set(t_list *variables, const t_variable var);
// Get the value of a variable from its name.
const char *variables_get(t_list *variables, const char *name);
#endif