ewx: (geek)
[personal profile] ewx
...how do the int* x; people declare pointers to functions?

(no subject)

Date: 2006-04-11 09:50 am (UTC)
fanf: (Default)
From: [personal profile] fanf
I tend to typedef the function type, e.g. typedef int fun(int); which then means you can declare function pointers in either style. However the actual reason for that form of typedef is so that I can declare functions that will be used with the associated pointer type with fun foo.

(no subject)

Date: 2006-04-11 10:05 am (UTC)
From: [identity profile] filecoreinuse.livejournal.com
Mmm. Pleasingly compact.

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags