-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_next_line.h
More file actions
30 lines (27 loc) · 1.3 KB
/
get_next_line.h
File metadata and controls
30 lines (27 loc) · 1.3 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: slargo-b <slargo-b@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/05 19:14:05 by slargo-b #+# #+# */
/* Updated: 2025/02/12 11:19:31 by slargo-b ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# include <unistd.h>
# include <stdlib.h>
# include <fcntl.h>
# include <stdio.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
int ft_strlen(const char *s);
int has_newline(char *buffer);
char *get_next_line(int fd);
char *ft_strjoin(const char *s1, const char *s2);
char *ft_strjoin_gnl(char *save, char *buffer);
void *ft_memcpy(void *dest, const void *src, size_t n);
#endif