OSDN Git Service

LDP: Replace NULL ポインタ to ヌルポインタ
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / basename.3
index 45fc849..b97a97a 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 2000 by Michael Kerrisk (mtk.manpages@gmail.com)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -19,7 +20,8 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
-.\" License.
+.\" %%%LICENSE_END
+.\"
 .\" Created, 14 Dec 2000 by Michael Kerrisk
 .\"
 .\"*******************************************************************
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 2001 NAKANO Takeo all rights reserved.
+.\" Translated 2001-03-31, NAKANO Takeo <nakano@apm.seikei.ac.jp>
+.\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2007-05-01, Akihiro MOTOKI, LDP v2.46
+.\"
 .TH BASENAME 3 2009\-03\-30 GNU "Linux Programmer's Manual"
 .SH 名前
 basename, dirname \- パス名を解析して各部分を取り出す
@@ -41,14 +49,14 @@ basename, dirname \- パス名を解析して各部分を取り出す
 .SH 説明
 警告: \fBbasename\fP()  には異なるバージョンが 2つ存在する。下記の「注意」の節を参照のこと。
 .LP
-\fBdirname\fP()  と \fBbasename\fP()  は、NULL で終端されたパス名の文字列を、 ディレクトリ部分・ファイル名部分に分割する。
+\fBdirname\fP()  と \fBbasename\fP()  は、ヌルで終端されたパス名の文字列を、 ディレクトリ部分・ファイル名部分に分割する。
 通常は、 \fBdirname\fP()  は最後の \(aq/\(aq までの部分 (最後の \(aq/\(aq は含まない) を返し、
 \fBbasename\fP()  は最後の \(aq/\(aq 以降の部分を返す。 文字列の末尾についた \(aq/\(aq
 文字は、パス名の一部とはみなされない。
 .PP
 \fIpath\fP に '/' 文字がない場合は、 \fBdirname\fP()  は文字列 "." を返し、 \fBbasename\fP()  は \fIpath\fP
 と同じ内容を返す。 \fIpath\fP が文字列 "/" に等しい場合は、 \fBdirname\fP()  も \fBbasename\fP()  も文字列 "/"
-を返す。 \fIpath\fP が NULL ポインタだったり、空の文字列を指していた場合は、 \fBdirname\fP()  も \fBbasename\fP()
+を返す。 \fIpath\fP が ヌルポインタだったり、空の文字列を指していた場合は、 \fBdirname\fP()  も \fBbasename\fP()
 も文字列 "." を返す。
 .PP
 \fBdirname\fP()  の返した文字列、 "/"、 \fBbasename\fP()  の返した文字列、 を順に結合すると、完全なパス名が得られる。
@@ -63,17 +71,19 @@ basename, dirname \- パス名を解析して各部分を取り出す
 以下の一連の例 (SUSv2 から引用) は、 いろいろな path に対して \fBdirname\fP()  と \fBbasename\fP()
 が返す文字列を表したものである。
 .sp
-.nf
-\fBpath         dirname    basename\fP
-"/usr/lib"    "/usr"    "lib"
-"/usr/"       "/"       "usr"
-"usr"         "."       "usr"
-"/"           "/"       "/"
-"."           "."       "."
-".."          "."       ".."
-.fi
+.TS
+lb lb lb
+l l l l.
+path           dirname basename
+/usr/lib       /usr    lib
+/usr/          /       usr
+usr            .       usr
+/              /       /
+\&.            .       .
+\&..           .       ..
+.TE
 .SH 返り値
-\fBdirname\fP()  と \fBbasename\fP()  は、いずれも NULL で終端された文字列へのポインタを返す。 (これらのポインタを
+\fBdirname\fP()  と \fBbasename\fP()  は、いずれもヌルで終端された文字列へのポインタを返す。 (これらのポインタを
 \fBfree\fP(3)  に渡さないこと。)
 .SH 準拠
 POSIX.1\-2001.
@@ -113,6 +123,6 @@ printf("dirname=%s, basename=%s\en", dname, bname);
 .SH 関連項目
 \fBbasename\fP(1), \fBdirname\fP(1)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。