-
Notifications
You must be signed in to change notification settings - Fork 3
/
get_next_line_bonus.h
39 lines (33 loc) · 1.49 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_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: epuclla <epuclla@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/06/18 00:26:24 by epuclla #+# #+# */
/* Updated: 2020/06/18 12:22:10 by epuclla ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include <unistd.h>
# include <stdlib.h>
# include <stdio.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 4000
# endif
# ifndef FD_SIZE
# define FD_SIZE 65535
# endif
char *ft_strchr(const char *s, int c);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *ft_strdup(const char *s1);
size_t ft_strlen(const char *str);
char *ft_strnew(size_t size);
void *ft_memalloc(size_t size);
void *ft_memset(void *b, int c, size_t len);
int ft_memdel(void **ptr);
int get_next_line(int fd, char **line);
#endif