
27 Sep
2001
27 Sep
'01
1:57 p.m.
hello, Is there any way to export a value of type String? I have tried it as follows Haskell code foreign export f::Int -> IO (StablePtr String) f:: Int -> IO (StablePtr String) f n = newStablePtr ("hola") C code char *cad; cad=f(5); printf("%s",cad); but it does not go (segmentation fault). Thanks in advance, J. Ignacio García
8637
Age (days ago)
8637
Last active (days ago)
0 comments
1 participants
participants (1)
-
Juan Ignacio García García