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

10
cl/_testcgo/hello/in.go Normal file
View File

@@ -0,0 +1,10 @@
package main
import "github.com/goplus/llgo/cl/internal/libc"
var format = [...]int8{'H', 'e', 'l', 'l', 'o', ' ', '%', 'd', '\n', 0}
func main() {
sfmt := &format[0]
libc.Printf(sfmt, libc.Strlen(sfmt))
}