-
Prototype : char *get_next_line(int fd);
-
Turn in files : get_next_line.c, get_next_line_utils.c, get_next_line.h
-
Parameters fd: The file descriptor to read from
-
get_next_line
関数は、指定されたファイルディスクリプタから1行ずつ読み込む関数です。この関数はループを使用して複数回呼び出すことができ、ファイル内のテキストを一行ずつ読み取ります。 -
関数は、読み取った行を返します。もし読み取るものがないか、エラーが発生した場合は
NULL
を返します。 -
読み取った行には、改行文字
\n
が含まれます。ただし、ファイルの末尾に達した場合、かつその行が改行文字で終わっていない場合は、改行文字を含まないで返します。
-
Notifications
You must be signed in to change notification settings - Fork 0
tokochiz/get_next_line
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
20240204- Level1
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published