Repository navigation
Expand file tree
/
Copy pathft_split.c
More file actions
75 lines (67 loc) · 2.14 KB
/
Copy pathft_split.c
File metadata and controls
75 lines (67 loc) · 2.14 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* ************************************************************************** */
/* */
/* /#/ |#/|#| */
/* ft_split.c /#/ |/ |#| */
/* /#/ /#/ */
/* By: nephco <nephco@student.42.fr> /#/ /#/ */
/* /#/____ |#| /| */
/* Created: 2026/06/17 23:58:55 by nephco |#######| |#|/#| */
/* Updated: 2026/09/03 23:56:21 by nephco |#| NEPH */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include <stddef.h>
// PROG ===================================================================== //
static size_t memory(const char *chain)
{
size_t count;
char *copy;
count = 0;
while (chain[count] && chain[count] != '\0')
{
// arg
}
}
// -------------------------------------------------------------------------- //
static char *wordcut(char const *word, char cuterie)
{
size_t i;
size_t lenght;
char *temp;
i = 0;
while (word[i] != '\0')
{
temp = word[i];
if (word[i] != cuterie)
{
//memory()
}
i++;
}
}
// -------------------------------------------------------------------------- //
char **ft_split(char const *s, char c)
{
char *result;
// memory s
// call wordcut >> memory
// free
// s the string to be split
// c the delimiter caracter
char result;
}
// ========================================================================== //
// ========================================================================== //
// ========================================================================== //
char display(char const *playS, char playC)
{
split (playS, playC)
free()
printf
}
int main(int argc, char **argv)
{
// make code:
return(0);
}
// ========================================================================== //