Example #1
0
File: glib.go Project: leif/go-gtk
func GPtrToString(p interface{}) string {
	return C.GoString(C.to_charptr_from_gpointer(p.(C.gpointer)))
}
Example #2
0
File: glib.go Project: mattn/go-gtk
func GPtrToString(p interface{}) string {
	pp := (C.gpointer)(p.(unsafe.Pointer))
	return C.GoString(C.to_charptr_from_gpointer(pp))
}