-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line_bonus.h
40 lines (35 loc) · 1.71 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
40
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jqueijo- <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/12 14:47:26 by jqueijo- #+# #+# */
/* Updated: 2023/07/20 13:53:14 by jqueijo- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 10
# endif
# include <stdlib.h>// Memory allocation
# include <stdarg.h>// va_lists
# include <string.h>// String manipulation
# include <stddef.h>// Types and macros like NULL and size_t
# include <stdio.h>// Printf
# include <unistd.h>// System calls, write
# include <limits.h>// Limits, for testing
# include <fcntl.h>// Open function
void *ft_memset(void *s, int c, size_t n);
void *ft_calloc(size_t nmemb, size_t size);
size_t ft_strlen(const char *str);
char *ft_strchr(const char *s, int c);
char *ft_strjoin(char *s1, char *s2);
void manage_buffer(char *buffer);
char *create_line(char *temp);
char *read_line_loop(int fd, char *buffer, char *temp, int rchars);
char *read_line(int fd, char *buffer);
char *get_next_line(int fd);
#endif