FGETLINE(3)
okay bestie, welcome to FGETLINE(3) from SchilyΒ΄s LIBRARY FUNCTIONS π this one is lowkey iconic and does exactly what it says on the tin.
πΈ NAME πΈ
fgetline() β gets a line from a file, periodt β¨
π SYNOPSIS π
int fgetline(f,buf,length)
FILE *f;
char *buf;
int length;
π¦ DESCRIPTION π¦
So fgetline() reads up to length characters from the input file using getc() (q.v.). The transfer is also terminated by a newline, end of file, or read error. The newline character is stripped and the string is NULL ('\0') terminated. That's the whole vibe. π
π RETURNS π
>=0β the number of bytes read.< 0β if an error occurred.
mwah π huge shoutout to Joerg Schilling, dated 2022/09/09, and this absolute queen of a page is FGETLINE(3) β from SchilyΒ΄s LIBRARY FUNCTIONS. bye bestie, go read some lines π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms