OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / draft / man3 / stpncpy.3
index 3d8ca9f..d181a7b 100644 (file)
@@ -15,7 +15,7 @@
 .\" Translated Tue Jan 11 00:55:50 JST 2000
 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
 .\"
-.TH STPNCPY 3 2010-09-15 "GNU" "Linux Programmer's Manual"
+.TH STPNCPY 3  2011-09-28 "GNU" "Linux Programmer's Manual"
 .\"O .SH NAME
 .SH Ì¾Á°
 .\"O stpncpy \- copy a fixed-size string, returning a pointer to its end
@@ -56,22 +56,23 @@ _GNU_SOURCE
 .\"O The
 .\"O .BR stpncpy ()
 .\"O function copies at most \fIn\fP characters from the string
-.\"O pointed to by \fIsrc\fP, including the terminating \(aq\\0\(aq character,
+.\"O pointed to by \fIsrc\fP, including the terminating null byte (\(aq\\0\(aq),
 .\"O to the array pointed to by \fIdest\fP.
 .\"O Exactly \fIn\fP characters are written at
 .\"O \fIdest\fP.
 .\"O If the length \fIstrlen(src)\fP is smaller than \fIn\fP, the
 .\"O remaining characters in the array pointed to by \fIdest\fP are filled
-.\"O with \(aq\\0\(aq characters.
+.\"O with null bytes (\(aq\\0\(aq),
 .\"O If the length \fIstrlen(src)\fP is greater or equal to
 .\"O \fIn\fP, the string pointed to by \fIdest\fP will
-.\"O not be \(aq\\0\(aq terminated.
+.\"O not be null-terminated.
 .BR stpncpy ()
-´Ø¿ô¤Ï \fIsrc\fP ¤¬»Ø¤·¤Æ¤¤¤ëʸ»úÎ󤫤齪ü¤Î \(aq\\0\(aq Ê¸»ú¤ò
-´Þ¤á¤ÆºÇÂç \fIn\fP ¥Ð¥¤¥È¤ò \fIdest\fP ¤Ë¥³¥Ô¡¼¤¹¤ë¡£Ä¹¤µ
+´Ø¿ô¤Ï \fIsrc\fP ¤¬»Ø¤·¤Æ¤¤¤ëʸ»úÎ󤫤齪ü¤Î NULL ¥Ð¥¤¥È (\(aq\\0\(aq)
+¤ò´Þ¤á¤ÆºÇÂç \fIn\fP ¥Ð¥¤¥È¤ò \fIdest\fP ¤Ë¥³¥Ô¡¼¤¹¤ë¡£Ä¹¤µ
 \fIstrlen(src)\fP ¤¬ \fIn\fP ¤è¤ê¾®¤µ¤¤¾ì¹ç¤Ë¤Ï \fIdest\fP ¤Î»Ä¤ê¤Î
-Éôʬ¤Ë¤Ï  \(aq\\0\(aq Ê¸»ú¤¬Ëä¤á¤é¤ì¤ë¡£Ä¹¤µ \fIstrlen(src)\fP ¤¬ \fIn\fP °Ê¾å
-¤Ê¤é¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹Ê¸»úÎó¤Ï \(aq\\0\(aq ¤Ç½ªÃ¼¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
+Éôʬ¤Ë¤Ï NULL ¥Ð¥¤¥È (\(aq\\0\(aq) Ê¸»ú¤¬Ëä¤á¤é¤ì¤ë¡£
+Ťµ \fIstrlen(src)\fP ¤¬ \fIn\fP °Ê¾å¤Ê¤é¤Ð¡¢
+\fIdest\fP ¤¬»Ø¤¹Ê¸»úÎó¤Ï NULL ¤Ç½ªÃ¼¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
 .PP
 .\"O The strings may not overlap.
 Æó¤Ä¤Îʸ»úÎó¤Ï½Å¤Ê¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
@@ -83,16 +84,17 @@ _GNU_SOURCE
 .\"O .SH "RETURN VALUE"
 .SH ÊÖ¤êÃÍ
 .\"O .BR stpncpy ()
-.\"O returns a pointer to the terminating null
+.\"O returns a pointer to the terminating null byte
 .\"O in \fIdest\fP, or, if \fIdest\fP is not null-terminated,
 .\"O \fIdest + n\fP.
 .BR stpncpy ()
-¤Ï \fIdest\fP ¤Î½ªÃ¼¤Î¥Ê¥ëʸ»ú¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¡¼¤òÊÖ¤¹¤«¡¢
-\fIdest\fP ¤¬¥Ê¥ëʸ»ú¤Ç½ªÃ¼¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï \fIdest + n\fP ¤òÊÖ¤¹¡£
+¤Ï \fIdest\fP ¤Î½ªÃ¼¤Î NULL ¥Ð¥¤¥È¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¡¼¤òÊÖ¤¹¤«¡¢
+\fIdest\fP ¤¬ NULL ¥Ð¥¤¥È¤Ç½ªÃ¼¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï \fIdest + n\fP ¤òÊÖ¤¹¡£
 .\"O .SH "CONFORMING TO"
 .SH ½àµò
-.\"O This function is a GNU extension.
-¤³¤Î´Ø¿ô¤Ï GNU ¤Î³ÈÄ¥¤Ç¤¢¤ë¡£
+.\"O This function was added to POSIX.1-2008. Before that, it was a GNU extension.
+¤³¤Î´Ø¿ô¤Ï POSIX.1-2008 ¤ËÄɲ䵤줿¡£
+¤½¤ì°ÊÁ°¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤Ã¤¿¡£
 .\"O .SH "SEE ALSO"
 .SH ´ØÏ¢¹àÌÜ
 .BR strncpy (3),