A C string is a reference to an array of C characters terminated by NUL.
Modulererebase-1.21.2Haskell2010
Foreign.C.String
- 4 types
- 25 values
- Packagererebase-1.21.2
- Exports29
- LanguageHaskell2010
- LicenceMIT
- SourceEncoding.hs
A string with explicit length information in bytes instead of a terminating NUL (allowing NUL characters in the middle of the string).
Marshal a Haskell string into a NUL terminated C string using temporary storage.
the Haskell string may not contain any NUL characters
the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
Marshal a Haskell string into a NUL terminated C string.
the Haskell string may not contain any NUL characters
new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.
Marshal a NUL terminated C string into a Haskell string.
Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information.
the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
Marshal a C string with explicit length into a Haskell string.
Marshal a Haskell string into a NUL terminated C string using temporary storage.
the Haskell string may not contain any NUL characters
the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information.
the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
Convert a C byte, representing a Latin-1 character, to the corresponding Haskell character.
Convert a C signed char, representing a Latin-1 character, to the
corresponding Haskell character.
Convert a C unsigned char, representing a Latin-1 character, to
the corresponding Haskell character.
Convert a Haskell character to a C character. This function is only safe on the first 256 characters.
Convert a Haskell character to a C signed char.
This function is only safe on the first 256 characters.
Convert a Haskell character to a C unsigned char.
This function is only safe on the first 256 characters.
Marshal a Haskell string into a NUL terminated C string.
the Haskell string may not contain any NUL characters
new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.
Marshal a Haskell string into a C string (ie, character array) with explicit length information.
new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.
Marshal a Haskell string into a C string (ie, character array) with explicit length information.
new storage is allocated for the C string and must be explicitly freed using free or finalizerFree.
Marshal a Haskell string into a NUL terminated C wide string.
the Haskell string may not contain any NUL characters
new storage is allocated for the C wide string and must be explicitly freed using free or finalizerFree.
Marshal a Haskell string into a C wide string (ie, wide character array) with explicit length information.
new storage is allocated for the C wide string and must be explicitly freed using free or finalizerFree.
Marshal a NUL terminated C string into a Haskell string.
Marshal a C string with explicit length into a Haskell string.
Marshal a NUL terminated C wide string into a Haskell string.
Marshal a C wide string with explicit length into a Haskell string.
Marshal a Haskell string into a NUL terminated C wide string using temporary storage.
the Haskell string may not contain any NUL characters
the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
Marshal a Haskell string into a C wide string (i.e. wide character array) in temporary storage, with explicit length information.
the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
A C wide string is a reference to an array of C wide characters terminated by NUL.
A wide character string with explicit length information in CWchars instead of a terminating NUL (allowing NUL characters in the middle of the string).