peekCString stack overflow

George Russell ger at tzi.de
Thu Oct 2 06:05:57 EDT 2003


Actually what I really need is peekCStringLen.  This function can
surely avoid stack overflow by building up the result from right to
left?

I think for peekCString the solution might be to get the length using
the C function strlen (which is more optimised than a Haskell alternative)
and then call peekCStringLen.



More information about the Glasgow-haskell-bugs mailing list