RE: [gtk-list] Re: gpointer help needed



Ahh yes, I knew it was something simple.  It's always the simple things that
get me.  Thanks to all who replied.

Scott

On 20-Apr-99 Havoc Pennington wrote:
> 
> 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
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]