Files
llgo/_embdemo/write-esp32/main.go
2025-09-02 20:06:48 +08:00

13 lines
182 B
Go

package main
import "github.com/goplus/lib/c"
func main() {
buf := c.Malloc(6)
c.Memset(buf, 0, 6)
c.Strncpy((*c.Char)(buf), c.Str("abcde"), 5)
write(1, (*c.Char)(buf), 5)
}