pushswap/getnextline/get_next_line_bonus.h

39 lines
1.4 KiB
C
Raw Normal View History

2023-03-01 04:36:58 +01:00
/* ************************************************************************** */
/* */
/* :::::::: */
/* get_next_line_bonus.h |o_o || | */
/* +:+ */
/* By: djonker <marvin@codam.nl> +#+ */
/* +#+ */
/* Created: 2020/12/19 06:09:11 by djonker #+# #+# */
/* Updated: 2021/05/27 03:17:28 by djonker \___)=(___/ */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include "get_next_line_bonus.h"
# include <unistd.h>
# include <stdlib.h>
# include <fcntl.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 300
# endif
struct s_gnl
{
char b[BUFFER_SIZE + 1];
int fd;
};
int get_next_line(int fd, char **line);
char *ft_substr(char const *s, unsigned int start, size_t len);
void *ft_memcpy(void *dst, const void *src, size_t n);
size_t ft_strlen(char *str);
void ft_bzero(void *s, size_t n);
char *ft_strjoin(char const *s1, char const *s2);
#endif