Foreign.C.String

C strings

type CString

type CStringLen

Using a locale-dependent encoding

peekCString

peekCStringLen

newCString

newCStringLen

withCString

withCStringLen

charIsRepresentable

Using 8-bit characters

castCharToCChar

castCCharToChar

castCharToCUChar

castCUCharToChar

castCharToCSChar

castCSCharToChar

peekCAString

peekCAStringLen

newCAString

newCAStringLen

withCAString

withCAStringLen

C wide strings

type CWString

type CWStringLen

peekCWString

peekCWStringLen

newCWString

newCWStringLen

withCWString

withCWStringLen