The man-page project getline(3), and more importantly, POSIX both state that *len is ignored and overwritten if the buffer is NULL. The VLC replacement also works that way. This is a bug in your man page. -- Remi Denis-Courmont