Is there a way to read a line of an indeterminate size in C without setting an initial size of the string or resizing the string? fgets seems to do the job, but you still have to specify a size. Is there a work around? Without appending strings and doing other inefficient stuff?

Thanks,
Yasir