mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
adding split substr strlen
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
#include <stdlib.h>
|
||||
#include "parsing.h"
|
||||
|
||||
static size_t count_words(char const *s, char c)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
#include <stdlib.h>
|
||||
#include "parsing.h"
|
||||
|
||||
char *ft_substr(char const *s, unsigned int start, size_t len)
|
||||
{
|
||||
|
||||
@@ -52,6 +52,14 @@ static t_stack *special_parsing(int argc, char **argv, int mod)
|
||||
t_stacks *piles;
|
||||
t_stack *first;
|
||||
t_stack *new;
|
||||
char **split_tab;
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
split_tab = ft_split(arv[wich_mod(mod)]);
|
||||
if (!split_tab)
|
||||
return (NULL);
|
||||
while ()
|
||||
}
|
||||
|
||||
t_stacks *init_piles(int argc, char **argv, int mod)
|
||||
|
||||
Reference in New Issue
Block a user