Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 242,699 of 243,242    |
|    highcrew to Michael Sanders    |
|    Re: function pointer question    |
|    02 Jan 26 17:21:10    |
      From: high.crew3868@fastmail.com              On 1/2/26 3:43 PM, Michael Sanders wrote:       > (It's also common to define a typedef for a       > pointer-to-function type, but I prefer to typedef the function type       > itself              OK, that's crazy! I didn't know of this!              It seems a bit weird at first, but I like the type consistency:       you declare `typedef int callback(int)` and declare `callback *c`       making it very explicit that we are talking of a pointer.              On the other hand it is not clear what `callback c` should do,       but it makes sense as soon as you declare it.              Thanks for sharing!              --       High Crew              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca