Re: [gtk-list] gpointer help needed
- From: Havoc Pennington <rhp zirx pair com>
- To: Gtk+ List <gtk-list redhat com>
- Subject: Re: [gtk-list] gpointer help needed
- Date: Mon, 19 Apr 1999 20:07:00 -0400 (EDT)
On Mon, 19 Apr 1999, Scott A. Barron wrote:
> /* This fails to compile */
> (struct _my_structure *)data->member;
((struct _my_structure*)data)->member;
assuming you put something else on the line, such as an assignment.
or:
typedef struct _my_structure meaningful_name;
...
meaningful_name* foo;
foo = (meaningful_name*)data;
/* do something with foo->data */
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]