[Cuis-dev] I need some advice with FFI
Nicola Mingotti
nmingotti at gmail.com
Tue Nov 9 02:47:02 PST 2021
On 11/7/21 23:08, Andres Valloud via Cuis-dev wrote:
> 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
>>
>>
Hi Andres,
yes, absolutely that function ;)
The motivation spurs from my mail to this list of 3-Nov title
"ATTENTION. maybe nasty bug ..... "
I am going to update on that thread today or tomorrow, time permitting.
bye
Nicola
More information about the Cuis-dev
mailing list