package main

import (
    "fmt"
    /*
       struct Test{
        int ID;
       };


       struct Test * test(){
        struct Test test;
        test.ID=333;
        return &test;
       };
    */
    "C"
)


type c struct {
    ID int
}
type Test struct {
    a string
    b string
}


func main() {
    var b *C.struct_Test=C.test()
    fmt.Println(b.ID)
}


---------------------------------------------
I want to print 333,but the result is strange.

Thanks
Chen


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to