M
Mike
I am trying to call a function that is defined as .. function x (char
*item , void *key)
I have a struct :
struct guide_options {
mvp_widget_t *mywidget;
char *myitem;
};
main () {
struct guide_options guideptr;
// then fill the struct
guideptr.mywidget = widget2;
guideptr.myitem = buf;
x ( (char*)i , (void*)&guideptr);
But it seg faults. Can someone point me in a direction.
Thank you, Mike
*item , void *key)
I have a struct :
struct guide_options {
mvp_widget_t *mywidget;
char *myitem;
};
main () {
struct guide_options guideptr;
// then fill the struct
guideptr.mywidget = widget2;
guideptr.myitem = buf;
x ( (char*)i , (void*)&guideptr);
But it seg faults. Can someone point me in a direction.
Thank you, Mike