let's test this

added ft_open, ft_close and ft_gets functions not tested
modified ft_getline with read 1 by 1
This commit is contained in:
Tanguy MAZE
2019-03-08 14:14:56 +01:00
parent 13d96a14d8
commit d49f964045
5 changed files with 89 additions and 20 deletions

12
libft.h
View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/08 00:12:36 by tmaze #+# #+# */
/* Updated: 2019/03/07 15:38:26 by tmaze ### ########.fr */
/* Updated: 2019/03/08 13:27:16 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -62,6 +62,16 @@ typedef struct s_list
# define BUFF_SIZE 30
/*
** definition type t_file
*/
typedef struct s_file
{
int fd;
char buff[BUFF_SIZE + 1];
} t_file;
enum e_size
{
h,