Skip to content

Commit

Permalink
fcntl64 test
Browse files Browse the repository at this point in the history
  • Loading branch information
motiejus committed Feb 5, 2022
1 parent 0cc6ce2 commit 8d110a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/go/hello.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package main

// #define _FILE_OFFSET_BITS 64
// #include <unistd.h>
// #include <fcntl.h>
// #include <stdio.h>
// char* hello() { return "hello, world"; }
// void printhello() { printf("%s\n", hello()); }
// void phello() { printf("%s, your lucky number is %p\n", hello(), fcntl); }
import "C"

func main() {
C.printhello()
C.phello()
}

func Chello() string {
Expand Down

0 comments on commit 8d110a3

Please sign in to comment.