-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_parse_quote_utils.c
More file actions
49 lines (43 loc) · 1.38 KB
/
ft_parse_quote_utils.c
File metadata and controls
49 lines (43 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_parse_quote_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: makbulut <makbulut@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/07 00:31:38 by makbulut #+# #+# */
/* Updated: 2022/09/03 13:05:57 by makbulut ### ########.fr */
/* */
/* ************************************************************************** */
void ft_get_end_numbers_dbquotes(char *s, int *end)
{
int index;
index = -1;
*end = -1;
while (++index || 1)
{
(*end)++;
if (s[index] == '"' || !s[index])
return ;
}
}
void ft_get_end_numbers_quote(char *s, int *end)
{
int index;
index = -1;
*end = -1;
while (++index || 1)
{
(*end)++;
if (s[index] == '\'' || !s[index])
return ;
}
}
void ft_get_len_of_word(char *s, int *end)
{
int index;
index = -1;
*end = 0;
while (s[++index] && !(s[index] == '"' || s[index] == '\''))
(*end)++;
}