-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_next_line.h
34 lines (30 loc) · 1.45 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: alajara- <alajara-@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/15 18:51:00 by alajara- #+# #+# */
/* Updated: 2023/04/18 15:32:30 by alajara- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <fcntl.h>
# include <stdlib.h>
# include <stdio.h>
# include <unistd.h>
# include <limits.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 2000
# endif
char *get_next_line(int fd);
char *get_the_line(char *storage);
char *clean_storage(char *storage);
char *gnl_strchr(char *str, int c);
char *gnl_join_free(char *storage, char *buffer);
unsigned int gnl_strlen(char *str);
unsigned int gnl_strlcat(char *dst, char *src, unsigned int dstsize);
unsigned int gnl_strlcpy(char *dest, char *src, unsigned int size);
#endif