home bbs files messages ]

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,696 of 243,242   
   Michael Sanders to All   
   Re: function pointer question   
   02 Jan 26 14:42:28   
   
   From: porkchop@invalid.foo   
      
   On Fri, 2 Jan 2026 09:04:47 -0000 (UTC), Lawrence D’Oliveiro wrote:   
      
   > On Fri, 2 Jan 2026 07:24:55 -0000 (UTC), Michael Sanders wrote:   
   >   
   >> B: because every function must have a return type   
   >>    *including function pointers*?   
   >   
   > Yes. The type of the function pointer is of course that of the type of   
   > functions it points to.   
   >   
   >> C: what about ty[p]edef?   
   >   
   > The same rule applies as with any typedef: put the name to be given to   
   > the type in the place where the variable you might be declaring of   
   > that type would go.   
      
   Many thanks Lawrence, slow & steady, I'm gaining steam.   
      
   --   
   :wq   
   Mike Sanders   
      
   --- 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