tgrekov-get_next_line
HIVE gnl Nov 2023
Loading...
Searching...
No Matches
get_next_line_bonus.h
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* get_next_line_bonus.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2023/10/28 02:23:52 by tgrekov #+# #+# */
9/* Updated: 2023/12/12 07:48:47 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#ifndef GET_NEXT_LINE_BONUS_H
21# define GET_NEXT_LINE_BONUS_H
22
26# ifndef BUFFER_SIZE
27# define BUFFER_SIZE 1024
28# endif
29
33# ifndef MAX_FD
34# define MAX_FD 1024
35# endif
36
37# include "stdlib.h"
38# include "unistd.h"
39
40char *get_next_line(int fd);
41char *ft_strdup(const char *s1);
42char *ft_strjoin(char const *s1, char const *s2);
43void *ft_memcpy(void *dst, const void *src, size_t n);
44size_t ft_strlen(const char *str);
45
46#endif
char * get_next_line(int fd)
Return the next segment of text ending in a newline or EOF from file descriptor fd.