[Cuis-dev] I need some advice with FFI

Andres Valloud ten at smallinteger.com
Sun Nov 7 14:08:23 PST 2021


Are you trying to call localtime()?  Like, this function?

https://linux.die.net/man/3/localtime

On 11/6/21 11:01 AM, Nicola Mingotti via Cuis-dev wrote:
> Hi guys,
> 
> I was trying to develop my first FFI calls in Cuis today but
> I am stuck, i hope some of you can give me some guidance.
> 
> In the attached package there are implemented 2 foreign functions
> TestClass (class) >> time         # working
> TestClass (class) >> localtime    # broken
> 
> ---- interactions ----------
> TestClass time.                                      " ok "
> TestClass localtime2: (TestClass time).              " broken "
> -----------------------------
> 
> The error i get is "can not use integer as pointer".
> 
> Any ideas ?
> 
> bye
> Nicola
> 
> 


More information about the Cuis-dev mailing list