get_next_line.h 1.2 KB

12345678910111213141516171819202122232425262728
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* get_next_line.h :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/12/04 15:11:38 by mazimi #+# #+# */
  9. /* Updated: 2015/09/25 13:49:41 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef GET_NEXT_LINE_H
  13. # define GET_NEXT_LINE_H
  14. # include "libft.h"
  15. # include <sys/types.h>
  16. # include <sys/uio.h>
  17. # include <unistd.h>
  18. # include <fcntl.h>
  19. # define BUFF_SIZE 7
  20. int get_next_line(int const fd, char **line);
  21. int get(int const fd, char *tmp, char **rst, char **line);
  22. char *gnl(char *tmp);
  23. #endif