-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line_bonus.h
44 lines (30 loc) · 1.36 KB
/
get_next_line_bonus.h
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mraineri <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/18 22:20:11 by mraineri #+# #+# */
/* Updated: 2024/09/26 22:43:19 by mraineri ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
// Includes
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
// Define
// # define BUFFER_SIZE 10
# define OPEN_MAX 1024
// Functions:
/// Int Retun's
int ft_have_breakline(char *buffer);
int ft_strlen(char *str);
/// Char Retun's
char *get_next_line(int fd);
char *ft_strjoin(char *s1, char *s2, size_t len_s1, size_t len_s2);
char *ft_strcut(char *line, char *buffer);
#endif