mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-16 11:56:49 +01:00
「✨」 feat: now in header :D
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
|
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
|
||||||
/* Updated: 2024/06/10 16:40:52 by mmoussou ### ########.fr */
|
/* Updated: 2024/06/10 17:08:57 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -40,6 +40,17 @@ int env_init(char **env_d, t_env *env);
|
|||||||
*/
|
*/
|
||||||
char *env_get_value(char *name, t_env *env);
|
char *env_get_value(char *name, t_env *env);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief get value of an env
|
||||||
|
*
|
||||||
|
* @param name name of the variable you want
|
||||||
|
* @param env the env struct
|
||||||
|
* @param n length of the name
|
||||||
|
*
|
||||||
|
* @return (char *) content of the variable, NULL if doesn't exist
|
||||||
|
*/
|
||||||
|
char *env_getn_value(char *name, t_env *env, int n)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief get an array from the env struct
|
* @brief get an array from the env struct
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user