「🚧」 test: testing things, might broke.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/11 14:20:54 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/16 14:55:36 by madumerg ### ########.fr */
|
||||
/* Updated: 2024/09/28 17:32:42 by madumerg ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -38,7 +38,7 @@ char **info_map(char **file)
|
||||
|
||||
i = 0;
|
||||
j = 0;
|
||||
f_part = ft_calloc(6, sizeof(char *));
|
||||
f_part = ft_calloc(6 + 1, sizeof(char *));
|
||||
if (!f_part)
|
||||
return (NULL);
|
||||
while (i >= j)
|
||||
@ -55,19 +55,6 @@ char **info_map(char **file)
|
||||
return (f_part);
|
||||
}
|
||||
|
||||
void convert_white_s(char *str)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
while (str[i])
|
||||
{
|
||||
if (str[i] >= 9 && str[i] <= 13)
|
||||
str[i] = 32;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
int verif_char(char c)
|
||||
{
|
||||
if (c != '1' && c != '0' && c != 'N' && c != 'S' && c != 'W' && \
|
||||
@ -75,18 +62,3 @@ int verif_char(char c)
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int count_tab(char **tab)
|
||||
{
|
||||
int i;
|
||||
int ct;
|
||||
|
||||
i = 0;
|
||||
ct = 0;
|
||||
while (tab[i])
|
||||
{
|
||||
i++;
|
||||
ct++;
|
||||
}
|
||||
return (ct);
|
||||
}
|
||||
|
Reference in New Issue
Block a user