c/experimental/dynamic/getline

@1@ Behaves like @2@ Behaves like @3@ Reads from the stream as if by fgetc, until  is encountered, storing the characters in the buffer of size  pointed to by, automatically increasing its size as if by realloc to fit the entire input, including the delimiter, and adding a null terminator. may be null, in which case is ignored and  allocates a new buffer as if by malloc. The behavior is undefined if has a value that is outside the range of  or eof. @4@ Same as, except the characters are read as if by fgetwc and that must be a valid  or weof.

If is not null, the behavior is undefined if  is not a pointer that can be passed to free or if  is less than the size of the allocated memory pointed to by

Return value
The number of characters stored in the buffer, including the delimiter, but excluding the null terminator.

On error, returns and sets feof or ferror on.