Merge pull request #465 from morpingsss/morpingsss/add_Fopen

feat(llgo/c):Add two functions : Fopen &  Fclose
This commit is contained in:
xushiwei
2024-07-08 12:20:03 +08:00
committed by GitHub

6
c/c.go
View File

@@ -212,6 +212,12 @@ func Fputs(s *Char, fp FilePtr) Int
//go:linkname Fflush C.fflush
func Fflush(fp FilePtr) Int
//go:linkname Fopen C.fopen
func Fopen(c *Char, mod *Char) FilePtr
//go:linkname Fclose C.fclose
func Fclose(fp FilePtr) Int
// -----------------------------------------------------------------------------
//go:linkname Time C.time