The dl Library, Part 2

By Danny Kalev, ITworld |  How-to

Because functions' addresses are never NULL, a NULL
value would have indicated a failure. However, I wanted to
demonstrate the use of this technique.

2. When you call a function through a pointer, you use the pointer
as if it were the function's name. However, the following form
is also legal, albeit antiquated and perhaps less readable:
(*goodday)();.

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Ask a Question
randomness