[Gambas-user] Extern declaration question

Emil Lenngren emil.lenngren at ...626...
Mon Aug 20 11:29:27 CEST 2012


I hope that the real signature is
void serialPrintf (int fd, *const* char *message, ...)
because extern functions are not allowed to manipulate gambas strings.

/Emil

2012/8/20 Benoît Minisini <gambas at ...1...>

> Le 20/08/2012 11:05, wally a écrit :
> > How should i declare this function of a shared libray in gambas extern ?
> >
> >
> > #include <stdarg.h>
> > void serialPrintf (int fd, char *message, ...)
> >
> >
> > Public Extern serialPrintf(fd As Integer, message As Pointer, ...) '???
> >
> > wally
> >
>
> Public Extern serialPrintf(fd As Integer, message As String, ...) In ...
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list