-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
36 lines (30 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: meghribe <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/30 20:05:25 by meghribe #+# #+# */
/* Updated: 2024/09/08 00:37:55 by meghribe ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <stdlib.h>
# include <limits.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 10
# endif
# ifndef OPEN_MAX
# define OPEN_MAX 1024
# endif
char *get_next_line(int fd);
char *gnl_strchr(const char *s, int c);
char *gnl_strjoin(char *s1, char *s2);
void *gnl_calloc(size_t nmemb, size_t size);
size_t gnl_strlen(const char *s);
size_t gnl_strlcat(char *dst, const char *src, size_t size);
size_t gnl_strlcpy(char *dst, const char *src, size_t size);
#endif