Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "c.h"
- #include "_cgo_export.h"
- #include <string.h>
- #include <stdio.h>
- #include <stdlib.h>
- struct A* echo(void) {
- const char* p = "hello world";
- GoString p2;
- p2.p = (char*)p;
- p2.n = strlen(p);
- struct MyFunction_return v = MyFunction(1, 2, p2);
- printf("%ld %s\n", v.r0, v.r1);
- struct A* a = malloc(sizeof(*a));
- strcpy(a->val, "foobar");
- a->tag = 92;
- return a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement