.\" 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.
.\"
.\" 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
.\"
.\"*******************************************************************
以下の一連の例 (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) に渡さないこと。)
.in
.SH 関連項目
\fBbasename\fP(1), \fBdirname\fP(1)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。