Merge pull request #756 from luoliwoshang/c/fread

c:fread
This commit is contained in:
xushiwei
2024-09-01 05:55:10 +08:00
committed by GitHub

3
c/c.go
View File

@@ -216,6 +216,9 @@ func Fputc(c Int, fp FilePtr) Int
//go:linkname Fputs C.fputs
func Fputs(s *Char, fp FilePtr) Int
//go:linkname Fread C.fread
func Fread(data Pointer, size, count uintptr, fp FilePtr) uintptr
//go:linkname Fflush C.fflush
func Fflush(fp FilePtr) Int