c

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 80

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 Free added in v0.8.6

func Free(ptr Pointer)

func Fwrite added in v0.8.5

func Fwrite(data Pointer, size, count uintptr, fp FilePtr) uintptr

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 Siglongjmp added in v0.8.7

func Siglongjmp(jb Pointer, retval 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 Atoi added in v0.8.7

func Atoi(s *Char) Int

func Fflush added in v0.8.6

func Fflush(fp FilePtr) Int

func Fprintf

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

func Fputc added in v0.8.5

func Fputc(c Int, fp FilePtr) Int

func Fputs added in v0.8.6

func Fputs(s *Char, fp FilePtr) 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

func Sigsetjmp added in v0.8.7

func Sigsetjmp(jb Pointer, savemask Int) Int

func Usleep added in v0.8.6

func Usleep(useconds Uint) 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 AllocaSigjmpBuf added in v0.8.7

func AllocaSigjmpBuf() 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