OSDN Git Service

(split) LDP: Update release pages
[linuxjm/LDP_man-pages.git] / release / man3 / basename.3
index 45fc849..3fba8aa 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
 .\"
 .\"*******************************************************************
@@ -63,15 +65,17 @@ 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 で終端された文字列へのポインタを返す。 (これらのポインタを
 \fBfree\fP(3)  に渡さないこと。)
@@ -113,6 +117,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.52 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。