-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
32 lines (29 loc) · 1.44 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hfeufeu <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/17 15:41:52 by hfeufeu #+# #+# */
/* Updated: 2024/10/17 15:44:02 by hfeufeu ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stdlib.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1024
# endif
char *ft_strchr(const char *s, int c);
void *ft_calloc(size_t nmemb, size_t size);
char *get_bytes(int fd, char *bin);
char *caller(int fd, char *bin, int bytes, char *buffer);
char *ft_strjoin(char *s1, char *s2);
char *get_next_line(int fd);
char *ft_substr(char *s, unsigned int start, size_t len);
char *ft_strdup(char *s);
char *read_and_concat(int fd, char *bin, char *buffer, int bytes);
size_t ft_strlen(char *s);
#endif