c

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 13

Documentation

Index

Constants

View Source
const (
	LLGoPackage = "decl"
)

Variables

This section is empty.

Functions

func Advance

func Advance[PtrT any](ptr PtrT, offset int) PtrT

llgo:link Advance llgo.advance

func Exit added in v0.7.0

func Exit(Int)

func Index added in v0.7.0

func Index[T any, I integer](ptr *T, offset I) T

llgo:link Index llgo.index

func Qsort

func Qsort(base Pointer, count, elem uintptr, compar func(a, b Pointer) Int)

func Time added in v0.7.0

func Time(*int32) int32

func Unreachable

func Unreachable()

Types

type Char

type Char = int8
var Argv **Char
var Optarg *Char

func AllocaCStr

func AllocaCStr(s string) *Char

func GoStringData added in v0.7.0

func GoStringData(string) *Char

func Str

func Str(string) *Char

type Double added in v0.8.3

type Double = float64

type FilePtr

type FilePtr = unsafe.Pointer
var Stderr FilePtr
var Stdin FilePtr
var Stdout FilePtr

type Float added in v0.7.0

type Float = float32

type Int

type Int = C.int
var Argc Int
var Opterr Int
var Optind Int
var Optopt Int

func Fprintf

func Fprintf(fp FilePtr, format *Char, __llgo_va_list ...any) Int

func Getopt added in v0.7.0

func Getopt(argc Int, argv **Char, optstring *Char) Int

func GetoptLong added in v0.7.0

func GetoptLong(argc Int, argv **Char, optstring *Char, longopts *Option, longindex *Int) Int

func GetoptLongOnly added in v0.7.0

func GetoptLongOnly(argc Int, argv **Char, optstring *Char, longopts *Option, longindex *Int) Int

func Printf

func Printf(format *Char, __llgo_va_list ...any) Int

func Rand

func Rand() Int

func Remove added in v0.7.0

func Remove(path *Char) Int

type Long added in v0.8.2

type Long = int32

type LongLong added in v0.8.2

type LongLong = int64

type Option added in v0.7.0

type Option struct {
	Name   *Char
	HasArg Int
	Flag   *Int
	Val    Int
}

type Pointer

type Pointer = unsafe.Pointer

func Alloca

func Alloca(size uintptr) Pointer

func Malloc

func Malloc(size uintptr) Pointer

func Memcpy

func Memcpy(dst, src Pointer, n uintptr) Pointer

func Memset

func Memset(s Pointer, c Int, n uintptr) Pointer

type Uint added in v0.7.0

type Uint = C.uint

type Ulong added in v0.8.2

type Ulong = uint32

type UlongLong added in v0.8.2

type UlongLong = uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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