-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_next_line_bonus.h
More file actions
34 lines (30 loc) · 1.4 KB
/
get_next_line_bonus.h
File metadata and controls
34 lines (30 loc) · 1.4 KB
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_bonus.h :+: :+: */
/* +:+ */
/* By: mde-cloe <mde-cloe@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2022/03/31 19:19:17 by mde-cloe #+# #+# */
/* Updated: 2022/08/02 20:55:47 by mde-cloe ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include <limits.h>
# include <stdlib.h>
# include <unistd.h>
# include <stdbool.h>
char *get_next_line(int fd);
int set_buff(char **buff, int fd);
char *buff_to_line(char *buff, char *line);
size_t delimlen(char *str, char delim);
void buff_update(char *buff);
void strcopycat(char *dst, char *cpysrc, char *catsrc, \
size_t catlen);
char *stralloc(size_t count);
char *read_till_nl(char *buff, char *line, int fd);
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
#endif