The timer API: size or type safety?
Posted Dec 8, 2006 19:42 UTC (Fri) by jzbiciak
(✭ supporter ✭
In reply to: The timer API: size or type safety?
Parent article: The timer API: size or type safety?
Are you certain? Let's look at that closely:
typeof(*data) *p = data;
timer->function = (void (*)(void *)) func;
timer->data = (void *) p;
(void)(0 && (func(p), 0));
I guess your statement is that the last line, (func(p)) could be rewritten as (func(data)) instead. I can see that.
to post comments)