Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct gss_name_struct;
- typedef struct gss_name_struct * gss_name_t;
- var output_name C.gss_name_t = &C.struct_gss_name_struct{}
- // statement in the original .go file
- //var output_name C.gss_name_t = &C.struct_gss_name_struct{}
- // output from cgo -godefs
- // var output_name *[0]byte = &[0]byte{}
- // or more succinctly
- output_name := &[0]byte{}
- // output_name can be converted directly to a C.gss_name_t
- fmt.Printf("%+vn", output_name)
- fmt.Printf("%+vn", C.gss_name_t(output_name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement