>
> Looking at the code, I seem to remember that %p as a format identifier =
> in sscanf may be an issue. Here are the two functions that set and read =
> the address of the plugin. May Cygwin has limited support here? If so, =
> how should I write a pointer in ASCII instead? I can of course manually =
> convert it to/from Hex?!
>
I would suggest something like this to replace sscanf() with %p:
if (sizeof(void *) == sizeof(long long) )
sscanf(buf, "@%llx", &ret);
else if (sizeof(void *) == sizeof(long) )
sscanf(buf, "@%lx", &ret);
else
sscanf(buf, "@%x", &ret);
Also, you could change the printed message as follows:
printf("Fl_Plugin: returning plugin named \"%s\": %s 0x%p\n",
name, buf, ret);
to make sure that the problem is in the sscanf call with %p
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev