KAN RP SEX CHATGPT SUR
This commit is contained in:
parent
7e0bbd1203
commit
0bf045d4ab
@ -6,7 +6,7 @@
|
||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/03/31 20:42:17 by erey-bet ### ########.fr */
|
||||
/* Updated: 2023/04/04 13:38:27 by erey-bet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -59,7 +59,8 @@ int set_key_value_export(t_list **env, char *args, char **key, char **value)
|
||||
if (get_value_by_key(*key, env) == NULL)
|
||||
*value = ft_strdup(ft_strchr(args, '=') + 1);
|
||||
else
|
||||
*value = ft_strjoin(get_value_by_key(*key, env), ft_strchr(args, '=') + 1);
|
||||
*value = ft_strjoin(get_value_by_key(*key, env),
|
||||
ft_strchr(args, '=') + 1);
|
||||
}
|
||||
else
|
||||
*value = ft_strdup(ft_strchr(args, '=') + 1);
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/07/21 08:21:05 by erey-bet #+# #+# */
|
||||
/* Updated: 2023/02/28 13:52:13 by erey-bet ### ########.fr */
|
||||
/* Updated: 2023/04/04 13:40:43 by erey-bet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -22,7 +22,7 @@ static int ft_isspace(char c)
|
||||
|
||||
int ft_atoi_check(const char *nptr)
|
||||
{
|
||||
long result;
|
||||
int64_t result;
|
||||
int sign;
|
||||
|
||||
while (ft_isspace(*nptr))
|
||||
@ -37,9 +37,9 @@ int ft_atoi_check(const char *nptr)
|
||||
result = 0;
|
||||
while (*nptr >= '0' && *nptr <= '9')
|
||||
{
|
||||
result = result * 10 + *nptr++ - '0';
|
||||
if ((result > 2147483647 && sign == 1)
|
||||
|| (result > 2147483647 && sign == 1))
|
||||
result = result * 10 + (*nptr++ - '0') * sign;
|
||||
if ((result < 0 && sign == 1)
|
||||
|| (result > 0 && sign == -1))
|
||||
return (2);
|
||||
}
|
||||
if (*nptr--)
|
||||
|
Loading…
Reference in New Issue
Block a user