✏️」 norm: normed project.

This commit is contained in:
2024-07-24 18:54:19 +02:00
parent 6f0962f020
commit d2943e755d
2 changed files with 3 additions and 23 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/03 10:50:52 by mmoussou #+# #+# */
/* Updated: 2024/07/24 18:12:44 by adjoly ### ########.fr */
/* Updated: 2024/07/24 18:53:31 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -32,6 +32,7 @@ void copy_until_next(char *cmd, char quote, uint *i, uint *i_offset)
}
(*i_offset)++;
}
char *format_quotes_string(char *cmd)
{
uint i;

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/25 15:06:15 by adjoly #+# #+# */
/* Updated: 2024/07/24 18:13:17 by adjoly ### ########.fr */
/* Updated: 2024/07/24 18:53:18 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,31 +20,10 @@ char *format_quotes_string(char *cmd);
char *__redir_filename_cpy(char *redir_s)
{
//char *filename;
//size_t len;
//size_t i;
//size_t j;
char *tmp;
tmp = ft_calloc(__get_len_arg(redir_s) + 1, sizeof(char));
__cpy_arg(tmp, redir_s);
// i = 0;
// j = 0;
// filename = ft_calloc(len + 1, sizeof(char));
// while (i < len)
// {
// if (tmp[i] == DOUBLE || tmp[i] == SINGLE)
// i++;
// else
// {
// filename[j] = tmp[i];
// i++;
// j++;
// }
// }
// filename[j] = 0;
// free(tmp);
// return (filename);
tmp = format_quotes_string(tmp);
return (tmp);
}