parent
0cc6ce2a5b
commit
8d110a392a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user