, fgets.
char *fgets(char *restrict s, int n, FILE *restrict stream);
fgets() , s, n-1 , s . .
, . , .
:
: \n - ( ).
, :
ASCII LF (Line feed, 0x0A, 10 ) CR ( , 0x0D, 13 ) CR, LF (CR + LF, 0x0D 0x0A); . CR + LF . : , , , .
* LF: Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, Mac OS X, FreeBSD, etc.), BeOS, Amiga, RISC OS, and others
* CR+LF: DEC RT-11 and most other early non-Unix, non-IBM OSes, CP/M, MP/M, DOS, OS/2, Microsoft Windows, Symbian OS
* CR: Commodore 8-bit machines, Apple II family, Mac OS up to version 9 and OS-9
, , .