Skip to content

Commit

Permalink
Merge pull request #756 from luoliwoshang/c/fread
Browse files Browse the repository at this point in the history
c:fread
  • Loading branch information
xushiwei authored Aug 31, 2024
2 parents 2434fd7 + 3b9c9f6 commit 490e859
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c/c.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 490e859

Please sign in to comment.