chore: move _embdemo to _demo

This commit is contained in:
Haolan
2025-09-15 10:57:31 +08:00
parent 18e036568d
commit 4b2e1e777c
6 changed files with 1563 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package main
import "github.com/goplus/lib/c"
func myprint(s *c.Char) {
for i := 0; i < int(c.Strlen(s)); i++ {
WriteByte(byte(c.Index(s, i)))
}
}
func main() {
for {
myprint(c.Str("hello world"))
sleep(1)
}
}