libc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ImportPath = "github.com/pekim/gobbi/internal/libc"

Variables

This section is empty.

Functions

func CString

func CString(s string) (unsafe.Pointer, func())

func CStringFree

func CStringFree(cStr unsafe.Pointer)

func CStrings

func CStrings(goStrings []string) (unsafe.Pointer, func())

func GoString

func GoString(cStr unsafe.Pointer) string

goString returns a Go string for a null terminated C string.

The Go string is a copy of the C bytes.

func GoStringFree

func GoStringFree(cStr unsafe.Pointer) string

GoString returns a Go string for a null terminated C string.

The Go string is a copy of the C bytes. The C string memory is freed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL