-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
37 lines (31 loc) · 1.46 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
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: */
/* +:+ +:+ +:+ */
/* By: avaliull <avaliull@student.codam.nl> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/24 12:59:44 by avaliull #+# #+# */
/* Updated: 2024/12/14 12:43:53 by avaliull ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# if defined(BUFFER_SIZE)
# if BUFFER_SIZE > 8300000 || BUFFER_SIZE < 1
# undef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
# else
# define BUFFER_SIZE 42
# endif
# include <unistd.h>
# include <stdlib.h>
/* These includes are for testing only */
//#include <stdio.h>
char *get_next_line(int fd);
void set_str(const char *src, char *dest, ssize_t size);
char *gnl_join(char *str1, char *str2, ssize_t len_1, ssize_t len_2);
void trim_buff(char **buffer, ssize_t last_char_index, ssize_t max_len);
void gnl_bzero(char **mem, ssize_t size);
#endif