과제명: Get_Next_line

설명

구성

get_next_line의 main

#include "get_next_line.h"
#include <stdio.h>

int	main(int ac, char **av)
{
	char* line;
	int	check;
	int	fd;

	fd = open("test.txt", O_RDONLY);
	while ((check = get_next_line(fd, &line)) > 0)
	{
		printf("%s\n", line);
		free(line);
	}
	printf("%s\n", line);
	free(line);
	return (0);
}

gcc - D: https://www.rapidtables.com/code/linux/gcc/gcc-d.html

lseek: https://m.blog.naver.com/PostView.nhn?blogId=vovheas104&logNo=220297850907&proxyReferer=https:%2F%2Fwww.google.com%2F