Thanks!! What about the other direction? (Haskell function with string result) Christian > -----Urspr> �ngliche Nachricht----- > Von: Simon Marlow [SMTP:[EMAIL PROTECTED]] > Gesendet am: Montag, 16. Oktober 2000 13:07 > An: 'Lescher Christian'; '[EMAIL PROTECTED]' > Betreff: RE: Exposing Haskell functions with string arguments in a DLL > > > > How can I convert string arguments (null-terminated strings) > > to Haskell's [Char]? I saw there is some CString module in > > package lang of GHC, but I didn't found any documentation > > about it (e.g. packStringIO...?). > > For converting a static null-terminated C string to a Haskell String, use > CString.unpackCString. If you need to free the memory used by the original > C string afterwards, use CString.unpackCStringIO. > > Cheers, > Simon _______________________________________________ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
