cl: fake libc

This commit is contained in:
xushiwei
2024-04-26 05:51:30 +08:00
parent 2c3e1d1055
commit 33716a3385
3 changed files with 67 additions and 0 deletions

14
cl/internal/libc/libc.go Normal file
View File

@@ -0,0 +1,14 @@
package libc
import "C"
import _ "unsafe"
const (
LLGoPackage = true
)
//go:linkname Printf printf
func Printf(format *int8, __llgo_va_list ...any)
//go:linkname Strlen strlen
func Strlen(str *int8) C.int