-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
34 lines (29 loc) · 1.42 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
/* ************************************************************************** */
/* */
/* :::::::: */
/* get_next_line.h :+: :+: */
/* +:+ */
/* By: dreijans <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/12/22 13:18:23 by dreijans #+# #+# */
/* Updated: 2023/01/22 14:34:06 by dreijans ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <fcntl.h>
# include <stdlib.h>
# include <stddef.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 2
# endif
char *get_next_line(int fd);
ssize_t ft_find_newline(char *str);
char *ft_read_line(int fd, char *buffer, char *temp_buffer);
char *ft_save(char *str);
size_t ft_strlen(const char *s);
char *ft_strlcpy(char *dst, const char *src, size_t dstsize);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *ft_copy_join(char *s1, char *s2);
#endif