[Gambas-user] what is ... in c external function?

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Jun 13 20:38:56 CEST 2018


It means the same as in Gambas. IE undefined amount of arguments. I have
never run into this while using external functions.
You can try:
Public Extern errx(status As Integer, format as Pointer, ...)

...but I have n clue whether it actually works. The implementation may not
be compatible with C.


Jussi


On Wed, Jun 13, 2018 at 8:09 PM, Demosthenes Koptsis <demosthenesk at gmail.com
> wrote:

> Hello,
>
> i have the next external function in libc
>
> 'void errx (int status, const char *format, …)
>
> what is the ... ?
>
> is this correct?
>
> Public Extern errx(status As Integer, format as Pointer)
>
> Thnaks!
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180613/3cf18b3f/attachment.html>


More information about the User mailing list