What is the meaning of this?


N

nas

What is the meaning of this line??

static IFastString *(*pfnlr)(const char *)=0

and

IFastString *(**ppfn)(const char *)=&pfnlr

Here IFastString is the abstract class.

Thanks for ur help!
 
Ad

Advertisements

H

Hari

nas je napisao:
What is the meaning of this line??

static IFastString *(*pfnlr)(const char *)=0

and

IFastString *(**ppfn)(const char *)=&pfnlr

Here IFastString is the abstract class.

Thanks for ur help!

static IFastString *(*pfnlr)(const char *)=0;

pfnlr is static pointer to function that expects const char* and
returns IFastString*.

ppfn is pointer to pointer to function that expects const char* and
returns IFastString* and it points to address of pfnlr.

Look in google for some tutorials about pointers to function.

Best,
Zaharije Pasalic
 

Top