<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin-top: 25px; margin-right: 8px; margin-left: 8px; padding-top: 15px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I wonder which 'man' page Robin's system has on it. The "man" page is not, of course, the official specification of snprintf or anything else.</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin-top: 25px; margin-right: 8px; margin-left: 8px; padding-top: 15px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://man7.org/linux/man-pages/man3/snprintf.3p.html" id="LPlnk520151" class="OWAAutoLink">https://man7.org/linux/man-pages/man3/snprintf.3p.html</a> refers to</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin-top: 25px; margin-right: 8px; margin-left: 8px; padding-top: 15px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">
<span style="color: rgb(0, 0, 0);"><a href="https://man7.org/linux/man-pages/man3/fprintf.3p.html" id="LPlnk270822" class="OWAAutoLink">https://man7.org/linux/man-pages/man3/fprintf.3p.html</a> which has this disclaimer<br>
<br>
<b>COPYRIGHT </b></span><span style="color: rgb(16, 48, 255);"><b><a href="https://man7.org/linux/man-pages/man3/fprintf.3p.html#top_of_page" id="OWA9e30fbe5-4181-a6bf-1b40-931c25f91764" class="OWAAutoLink" style="color: rgb(16, 48, 255);">top</a></b></span></div>
<pre style="margin-left: 8px;"><div style="text-align: left; text-indent: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> Portions of this text are reprinted and reproduced in electronic
form from IEEE Std 1003.1-2017, Standard for Information
Technology -- Portable Operating System Interface (POSIX), The
Open Group Base Specifications Issue 7, 2018 Edition, Copyright
(C) 2018 by the Institute of Electrical and Electronics
Engineers, Inc and The Open Group. <span style="background-color: rgb(255, 255, 0);">In the event of any
discrepancy between this version and the original IEEE and The
Open Group Standard, the original IEEE and The Open Group
Standard is the referee document. The original Standard can be
obtained online at </span><span style="color: rgb(16, 48, 255); background-color: rgb(255, 255, 0);"><a href="http://www.opengroup.org/unix/online.html" id="OWAeff62073-c097-71ba-7c0f-e29c23bd020b" class="OWAAutoLink" style="color: rgb(16, 48, 255);">http://www.opengroup.org/unix/online.html</a></span> .</div></pre>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin-top: 25px; margin-right: 8px; margin-left: 8px; padding-top: 15px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
But I note that this man page also has a clear definition of 'n' <br>
<br>
</div>
<pre style="margin-left: 8px;"><div class="elementToProof" style="text-align: left; text-indent: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> The <i>snprintf</i>() function shall be equivalent to <i>sprintf</i>(), with
the addition of the <i>n</i> argument which states the size of the
buffer referred to by <i>s</i>. If <i>n</i> is zero, nothing shall be written
and <i>s</i> may be a null pointer. Otherwise, output bytes beyond the
<i>n</i>$B!>(B1st shall be discarded instead of being written to the array,
and a null byte is written at the end of the bytes actually
written into the array.</div></pre>
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin-top: 25px; margin-right: 8px; margin-left: 8px; padding-top: 15px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<br>
<br>
</div>
</body>
</html>