Documentation ¶
Index ¶
- Constants
- func Advance[PtrT any, I integer](ptr PtrT, offset I) PtrT
- func AllocaNew[T any]() *T
- func Exit(Int)
- func Fread(data Pointer, size, count uintptr, fp FilePtr) uintptr
- func Free(ptr Pointer)
- func Fwrite(data Pointer, size, count uintptr, fp FilePtr) uintptr
- func GoString(cstr *Char, __llgo_va_list ...any) string
- func Index[T any, I integer](ptr *T, offset I) T
- func Perror(s *Char)
- func Qsort(base Pointer, count, elem uintptr, compar func(a, b Pointer) Int)
- func Siglongjmp(jb Pointer, retval Int)
- func Strlen(s *Char) uintptr
- func Unreachable()
- type Char
- func AllocaCStr(s string) *Char
- func AllocaCStrs(strs []string, endWithNil bool) **Char
- func GoStringData(string) *Char
- func Str(string) *Char
- func Strcat(dst, src *Char) *Char
- func Strchr(s *Char, c Int) *Char
- func Strcpy(dst, src *Char) *Char
- func Strdup(s *Char) *Char
- func Strerror(errnum Int) *Char
- func Strncat(dst, src *Char, n uintptr) *Char
- func Strncpy(dst, src *Char, n uintptr) *Char
- func Strndup(s *Char, n uintptr) *Char
- func Strrchr(s *Char, c Int) *Char
- func Strstr(s1, s2 *Char) *Char
- func Strtok(s, delim *Char) *Char
- type Double
- type FilePtr
- type Float
- type Int
- func Atoi(s *Char) Int
- func Fclose(fp FilePtr) Int
- func Fflush(fp FilePtr) Int
- func Fprintf(fp FilePtr, format *Char, __llgo_va_list ...any) Int
- func Fputc(c Int, fp FilePtr) Int
- func Fputs(s *Char, fp FilePtr) Int
- func Getopt(argc Int, argv **Char, optstring *Char) Int
- func GetoptLong(argc Int, argv **Char, optstring *Char, longopts *Option, longindex *Int) Int
- func GetoptLongOnly(argc Int, argv **Char, optstring *Char, longopts *Option, longindex *Int) Int
- func Memcmp(s1, s2 Pointer, n uintptr) Int
- func Printf(format *Char, __llgo_va_list ...any) Int
- func Rand() Int
- func Sigsetjmp(jb Pointer, savemask Int) Int
- func Snprintf(s *Char, n uintptr, format *Char, __llgo_va_list ...any) Int
- func Sprintf(s *Char, format *Char, __llgo_va_list ...any) Int
- func Strcmp(s1, s2 *Char) Int
- func Strncmp(s1, s2 *Char, n uintptr) Int
- func Usleep(useconds Uint) Int
- func Vsnprintf(s *Char, n uintptr, format *Char, ap Pointer) Int
- type Long
- type LongLong
- type Option
- type Pointer
- func Alloca(size uintptr) Pointer
- func AllocaSigjmpBuf() Pointer
- func Calloc(num uintptr, size uintptr) Pointer
- func Func(any) Pointer
- func GoDeferData() Pointer
- func Malloc(size uintptr) Pointer
- func Memchr(s Pointer, c Int, n uintptr) Pointer
- func Memcpy(dst, src Pointer, n uintptr) Pointer
- func Memmove(dst, src Pointer, n uintptr) Pointer
- func Memset(s Pointer, c Int, n uintptr) Pointer
- type Uint
- type Ulong
- type UlongLong
- type Void
Constants ¶
View Source
const (
LLGoPackage = "decl"
)
Variables ¶
This section is empty.
Functions ¶
func Advance ¶
func Advance[PtrT any, I integer](ptr PtrT, offset I) PtrT
llgo:link Advance llgo.advance
func AllocaNew ¶ added in v0.9.0
func AllocaNew[T any]() *T
TODO(xsw): llgo:link AllocaNew llgo.allocaNew
func Index ¶ added in v0.7.0
func Index[T any, I integer](ptr *T, offset I) T
llgo:link Index llgo.index
func Siglongjmp ¶ added in v0.8.7
func Unreachable ¶
func Unreachable()
Types ¶
type Char ¶
type Char = int8
var Argv **Char
var Optarg *Char
func AllocaCStr ¶
func AllocaCStrs ¶ added in v0.9.1
func GoStringData ¶ added in v0.7.0
type Int ¶
var Argc Int
var Opterr Int
var Optind Int
var Optopt Int
func GetoptLong ¶ added in v0.7.0
func GetoptLongOnly ¶ added in v0.7.0
type Pointer ¶
func AllocaSigjmpBuf ¶ added in v0.8.7
func AllocaSigjmpBuf() Pointer
func GoDeferData ¶ added in v0.8.8
func GoDeferData() Pointer
Click to show internal directories.
Click to hide internal directories.