<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<div><span id="result_box" class="short_text"><span>...or you can specify it.</span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span>Library "libc:6"<br /><br />' int sprintf (char *__restrict __s, const char *__restrict __format, ...)<br />' Write formatted output to S.<br />Private Extern sprintf(__s As Pointer, __format As String, f As Float) As Integer<br /><br /><br />Public Sub Main()<br /> </span></span></div>
<div><span id="result_box" class="short_text"><span> Dim p As Pointer<br /> Dim s As String<br /> <br /> p = Alloc(SizeOf(gb.Byte), 11)<br /> <br /> sprintf(p, "%f", 123.456789)<br /> <br /> s = String@(p)<br /> <br /> Print s<br /> <br /> Free(p)<br /> <br />End<br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<div><span id="result_box" class="short_text"><span><br /></span></span></div>
<p>Il 13.06.2018 20:38 Jussi Lahtinen ha scritto:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>It means the same as in Gambas. IE undefined amount of arguments. I have never run into this while using external functions.</div>
<div>You can try:</div>
<div>Public Extern errx(status As Integer, format as Pointer, ...)</div>
<div>...but I have n clue whether it actually works. The implementation may not be compatible with C.</div>
<div>Jussi</div>
</div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On Wed, Jun 13, 2018 at 8:09 PM, Demosthenes Koptsis <span><<a href="mailto:demosthenesk@gmail.com">demosthenesk@gmail.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Hello,<br /><br /> i have the next external function in libc<br /><br /> 'void errx (int status, const char *format, …)<br /><br /> what is the ... ?<br /><br /> is this correct?<br /><br /> Public Extern errx(status As Integer, format as Pointer)<br /><br /> Thnaks!<br /><br /><br /> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----</blockquote>
</div>
</div>
</blockquote>
</body></html>
<br><br/><br/>Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo smartphone a 9€ al mese per sempre. Passa ora a Tiscali Mobile, il nostro mese è vero! <a href='http://tisca.li/Open6GB0318' target='_blank'>http://tisca.li/Open6GB0318</a><br/><br/>