<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Arial">Hello,</font></p>
<p><font face="Arial">The <a moz-do-not-send="true"
href="https://help.scilab.org/docs/6.1.0/en_US/printf_conversion.html">printf_conversion
page</a> tells that the "<i>"%c" directive accepts and
displays an integer value converted to a character"</i>.<br>
Yet, with Scilab 6.1.0<br>
</font><font size="+1"><tt><br>
</tt></font></p>
<p><font size="+1"><tt>--> msprintf("AB %c\n", 3)</tt><tt><br>
</tt><tt>msprintf: Wrong number of input arguments: data doesn't
fit with format.</tt><tt><br class="Apple-interchange-newline">
</tt></font></p>
<font size="+1"><tt>--> mprintf("AB %c\n", "5")</tt><tt><br>
</tt><tt>AB 5</tt><tt><br>
</tt><tt><br>
</tt><tt>--> mprintf("AB %c\n", "R")</tt><tt><br>
</tt><tt>AB R</tt><tt><br>
</tt><tt><br>
</tt><tt>--> mprintf("AB %c\n", "RB")</tt><tt><br>
</tt><tt>AB RB</tt><tt><br>
</tt></font>
<p>So, what's the difference between the %c and %s printing formats?</p>
<p>The Scilab 5.5 behavior was the same, except that only the first
character of the input was printed:<br>
</p>
<p>-->msprintf("AB %c\n", "RB")<br>
ans = <br>
AB R <br>
<br>
</p>
<p>Regards<br>
Samuel<br>
<br>
</p>
</body>
</html>