-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
34 lines (26 loc) · 1.32 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: cschuijt <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/10/30 22:20:14 by cschuijt #+# #+# */
/* Updated: 2022/10/30 22:54:48 by cschuijt ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <stddef.h>
# include <stdlib.h>
# include <unistd.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 1024
# endif
char *get_next_line(int fd);
int get_next_buffer(int fd, char **buffer, size_t *buffer_pos, char **line);
int add_to_str(char **old, char *to_add, size_t n);
void ft_strcpy(char *dst, char *src, size_t n);
int length_to_nl(char *buffer);
int ends_in_newline(char *str);
#endif