Re: hsc: Passing -1 as CString/Ptr a?

22 Nov
2001
22 Nov
'01
1:32 p.m.
Thu, 22 Nov 2001 13:57:32 +0100, Volker Stolz
Hi, I want to invoke the C-function 'dlsym', which has three possible options for a parameter of type (void*):
- NULL - void* to a string, i.e. CString in Haskell - RTLD_NEXT = (void *)(-1)
You can obtain the value from an embedded C function. foreign import unsafe rtldNext :: Ptr a #def inline void *rtldNext (void) {return RTLD_NEXT;} -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ QRCZAK
8580
Age (days ago)
8580
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marcin 'Qrczak' Kowalczyk