.\" all rights reserved.
.\" Translated 2007-06-02, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
-.TH GETSUBOPT 3 2008-05-29 "GNU" "Linux Programmer's Manual"
+.TH GETSUBOPT 3 2010-09-26 "GNU" "Linux Programmer's Manual"
.\"O .SH NAME
.SH ̾Á°
.\"O getsubopt \- parse suboption arguments from a string
getsubopt \- ʸ»úÎóÃæ¤Î¥µ¥Ö¥ª¥×¥·¥ç¥ó°ú¤¿ô¤Î²ò¼á¤ò¹Ô¤¦
.\"O .SH SYNOPSIS
.SH ½ñ¼°
-.B #define _XOPEN_SOURCE 500
-.br
.B #include <stdlib.h>
.BI "int getsubopt(char **"optionp ", char * const *" tokens \
", char **" valuep );
+.sp
+.in -4n
+.\"O Feature Test Macro Requirements for glibc (see
+.\"O .BR feature_test_macros (7)):
+glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+.RB ( feature_test_macros (7)
+»²¾È):
+.in
+.sp
+.BR getsubopt ():
+.ad l
+.RS 4
+.PD 0
+_XOPEN_SOURCE\ >= 500 ||
+_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
+.br
+|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
+.PD
+.RE
+.ad
.\"O .SH DESCRIPTION
.SH ÀâÌÀ
.\"O .BR getsubopt ()
.\"O .BR getsubopt ()
.\"O returns,
.\"O .I optionp
-.\"O points to the next suboption, or to the null character at the end of the
+.\"O points to the next suboption,
+.\"O or to the null byte ('\\0') at the end of the
.\"O string if the last suboption was just processed.
.BR getsubopt ()
¤¬ÊÖ¤ë»þ¡¢
.I optionp
¤Ï¼¡¤Î¥µ¥Ö¥ª¥×¥·¥ç¥ó¤ò»Ø¤·¤Æ¤¤¤ë¡£
¤Á¤ç¤¦¤ÉºÇ¸å¤Î¥µ¥Ö¥ª¥×¥·¥ç¥ó¤¬½èÍý¤µ¤ì¤¿¾ì¹ç¤Ï¡¢
-ʸ»úÎóËöÈø¤Î¥Ì¥ëʸ»ú¤ò»Ø¤·¤Æ¤¤¤ë¡£
+ʸ»úÎóËöÈø¤Î¥Ì¥ë¥Ð¥¤¥È ('\\0') ¤ò»Ø¤·¤Æ¤¤¤ë¡£
.\"O .SH RETURN VALUE
.SH ÊÖ¤êÃÍ
.\"O If the first suboption in