[Haskell-cafe] (no subject)
Donald Bruce Stewart
dons at cse.unsw.edu.au
Thu May 24 05:03:52 EDT 2007
leaveye.guo:
> to Ketil :
>
> Tring openBinaryFile, I notice that I cannot make one usable buffer,
> just because I can not find one function to "malloc" a memory or just
> get one "change-able" buffer.
>
> :-$
No 'malloc' here in Haskell land: that's done automatically. Recall
that 'getContents' will read your opened file into a [Char]. (or use
Data.ByteString to get a stream of Word8).
What are you trying to do?
-- Don
More information about the Haskell-Cafe
mailing list