gtk_entry_get_text() - having problems with return type



Hey everyone,

i am trying to take the contents of of text entry and push them into gethostbyname(), when I do this I get the error:

warning: assignment makes pointer from integer without a cast

gethostbyname() requests a char *
and gtk_entry_get_text() returns G_CONST_RETURN gchar*

How do I cast this? or do whatever it is so it takes the variable?

Thanks,

Ben LeMasurier

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail




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