Function getline

Function Documentation

static ssize_t getline(char **lineptr, size_t *n, FILE *stream)

Read line from file stream and store it in a buffer.

For a full description see https://linux.die.net/man/3/getline.

The implementation is based on a code that was published under the Zero-Clause BSD license, i.e., as public domain code.

Source: https://github.com/arnavyc/getdelim/blob/0129a33c182b46e62b3137623a5569449fd3cc94/include/ay/getdelim.h