X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=draft%2Fman3%2Fgetline.3;h=bb39e0efc265c5d9de9bb7f0fbf9e1a268be5821;hp=96c3a55fa5b5b4e21d674d67fc011633bc304aea;hb=4fe824747c7faf385ebddbeea1a89602416484c3;hpb=9bcf2c2efa91bb5a99391eca7459b6d698214271 diff --git a/draft/man3/getline.3 b/draft/man3/getline.3 index 96c3a55f..bb39e0ef 100644 --- a/draft/man3/getline.3 +++ b/draft/man3/getline.3 @@ -74,14 +74,11 @@ _GNU_SOURCE に指定することができる。 \fBgetline\fP() と同様に、ファイル終端に達するまでに入力行に区切り文字が見付からない場合は、 区切り文字をバッファに追加しない。 .SH 返り値 -On success, \fBgetline\fP() and \fBgetdelim\fP() return the number of characters -read, including the delimiter character, but not including the terminating -null byte (\(aq\e0\(aq). This value can be used to handle embedded null -bytes in the line read. +成功した場合、 \fBgetline\fP() と \fBgetdelim\fP() は読み込んだ文字数を返す。 文字数には区切り文字は含まれるが、終端に使う +NULL バイト (\(aq\e0\(aq) は含まれない。 この値によって、読み込んだ行に含まれる NULL バイトを操作することができる。 -Both functions return \-1 on failure to read a line (including end\-of\-file -condition). In the event of an error, \fIerrno\fP is set to indicate the -cause. +どちらの関数も、行の読み込みに失敗した場合には \-1 を返す (ファイルの終端に達した場合にも \-1 を返す)。 エラーが発生した場合には、 +\fIerrno\fP にエラーの原因を示す値が設定される。 .SH エラー .TP \fBEINVAL\fP