[ECOS] Possible bug in dbg-threads-syscall.c

Patrick Doyle wpd@delcomsys.com
Tue Dec 4 11:46:00 GMT 2001


> I guess C defines '*f' as a "function" :-P
>
> Seriously, since C allows this:
>
>     typedef int int_fun(int);
>
> then the type 'int_fun' represents the set of functions that take
> an int in
> argument and that return an int. Then,
>
>     int_fun* int_fun_ptr;
>
> naturally defines a pointer to such functions and
That's what makes sense to me.  So then what does:

if (*int_fun_ptr == 0) blah()

mean?
(I know, we are way off topic here, but it does seem like a bizarre thing to
test).

>
> HTMS,
  ^^^^
That's one I haven't seen before... what is it?

--wpd




More information about the Ecos-discuss mailing list