18 lines
331 B
Go
18 lines
331 B
Go
package main
|
|
|
|
// #define _FILE_OFFSET_BITS 64
|
|
// #include <unistd.h>
|
|
// #include <fcntl.h>
|
|
// #include <stdio.h>
|
|
// char* hello() { return "hello, world"; }
|
|
// void phello() { printf("%s, your lucky number is %p\n", hello(), fcntl); }
|
|
import "C"
|
|
|
|
func main() {
|
|
C.phello()
|
|
}
|
|
|
|
func Chello() string {
|
|
return C.GoString(C.hello())
|
|
}
|