Question: what is gchar in c?
Answer: gchar , used in gtk, is a glib type just a typedef to a char , so you're done already. ... The code you're showing passes an uninitialized char pointer to this function... So either that is your problem, or you are not showing your actual code, which means no one can help you.