Hi,
I have a fuction like : int fucntion(char **line), i would like to know what i need to put for it's work.
Printable View
Hi,
I have a fuction like : int fucntion(char **line), i would like to know what i need to put for it's work.
What is this function supposed to do?
Code:int
Code:get_next_line(constint fd, char**line)
{
char*text;
int buf_size;
buf_size = READ_SIZE;
text =malloc(sizeof(char) * buf_size);
if (fd <0||!text ||!line)
return (-1);
return (read_line(text, buf_size, line, fd));
}
here is my function, this need to return a line.