-- | Convert a Haskell character to a C character.
-- This function is only safe on the first 256 characters.
castCharToCChar :: Char -> CChar
castCharToCChar ch = fromIntegral (ord ch)
castCharToCChar :: Char -> CChar
castCharToCChar ch = fromIntegral (ord ch)
castCharToCChar ch = fromIntegral (ord ch)