<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>yes thanks a lot all of you... it is the <span style="color:
rgb(36, 39, 41); font-family: Arial, "Helvetica Neue",
Helvetica, sans-serif; font-size: 15px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;">ellipsis as i
found at</span></p>
<p><span style="color: rgb(36, 39, 41); font-family: Arial,
"Helvetica Neue", Helvetica, sans-serif; font-size:
15px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;"><a moz-do-not-send="true"
href="https://stackoverflow.com/questions/2735587/in-a-c-function-declaration-what-does-as-the-last-parameter-do">https://stackoverflow.com/questions/2735587/in-a-c-function-declaration-what-does-as-the-last-parameter-do</a><br>
</span></p>
<br>
<div class="moz-cite-prefix">On 06/14/2018 01:38 AM,
<a class="moz-txt-link-abbreviated" href="mailto:vuott@tiscali.it">vuott@tiscali.it</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:cdcf9ee7e0c3c95f114a3b68bb65c1a6@tiscali.it">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">https://www.hostsharing.net</a>
]----</blockquote>
</div>
</div>
</blockquote>
<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" moz-do-not-send="true">http://tisca.li/Open6GB0318</a><br>
<br>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
<br>
</body>
</html>