-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhandle_single_string.c
22 lines (20 loc) · 1.06 KB
/
handle_single_string.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* handle_single_string.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yst-laur <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/09 14:15:36 by yst-laur #+# #+# */
/* Updated: 2022/03/09 14:15:40 by yst-laur ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
char **handle_single_string(char *argv[], int *argc)
{
char **str;
str = ft_splitset(argv[1], " ");
errorhandlingintsingle(str);
*argc = argcount(str);
return (str);
}