🏗️」 wip: Work in progress

This commit is contained in:
2024-06-18 12:21:40 +02:00
parent f70c506fed
commit 6ae7296237
13 changed files with 270 additions and 42 deletions

57
src/parsing/split_argv.c Normal file
View File

@ -0,0 +1,57 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* split_argv.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/05 13:48:57 by adjoly #+# #+# */
/* Updated: 2024/06/10 16:29:12 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "parsing.h"
/*char *end_of_arg(char *readline)
{
char *tmp;
tmp = readline;
while (*tmp)
{
if (*tmp == 32 && is_inquote(readline, tmp - readline))
break ;
tmp++;
}
return (tmp);
}
size_t count_args(char *readline)
{
char *tmp;
tmp = readline;
while (*tmp)
{
tmp++;
}
}
char **split_argv(char *readline)
{
char *tmp;
char **argv;
tmp = readline;
ft_putnbr_fd(count_args(readline), STDOUT_FILENO);
argv = ft_calloc(count_args(readline), sizof(char *));
while (*tmp)
{
tmp++;
}
return (argv);
}
*/