-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
37 lines (31 loc) · 1.4 KB
/
get_next_line.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: waraissi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/13 19:35:47 by waraissi #+# #+# */
/* Updated: 2022/11/22 17:33:36 by waraissi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
# include<unistd.h>
# include<stdlib.h>
# include<stdio.h>
# include<fcntl.h>
size_t ft_strlen(char *str);
size_t ft_strlcpy(char *dst, char *src, size_t n);
char *ft_strdup(char *str);
char *ft_substr(char *s, unsigned int start, size_t len);
int is_newline(char *str);
char *ft_strjoin(char *s1, char *s2);
int get_index(char *str);
char *before_newline(char *str);
char *after_newline(char *str);
char *get_next_line(int fd);
#endif