Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- module Foreign.Marshal.Alloc
- calloc :: Storable a => IO (Ptr a)
- callocBytes :: Int -> IO (Ptr a)
Documentation
module Foreign.Marshal.Alloc
calloc :: Storable a => IO (Ptr a) Source #
Like malloc
but memory is filled with bytes of value zero.
callocBytes :: Int -> IO (Ptr a) Source #
Like mallocBytes
, but memory is filled with bytes of value zero.