▪️Building the thing
For this function, this won't be a step by step building because describing each step that you need to take to build the function is pretty hard.
I'll give you hints on what you have to do to achieve it.
LIBFT functions
For this project, I used some of the LIBFT functions you already know and built.
I won't tell you exactly where and when you need to use them, but I'll give you what functions I used, maybe it'll give you some ideas on where to start or will unlock you if you're stuck on something.
FT_STRCHR
FT_STRDUP
FT_STRLEN
FT_SUBSTR
FT_STRJOIN
Additional functions
Apart from these 5 functions, I used 3 other functions :
char *get_next_line(int fd)
char *_fill_line_buffer(int fd, char *left_c, char *buffer)
char *_set_line(char *line_buffer)
Explaining the functions
Each of these 3 functions have a specific use in the project, I will here describe what each function does, this could give you an idea on what to do. Also, you'll see better where I could have used the LIBFT functions.
These are the main functions for this project, I hope these explanation of what they each do in my project, can help you working on your own.
In the next part you'll find the complete commented code for these 3 functions. I won't explain the other functions because you should have already corrected them and understood them.
Last updated
Was this helpful?