What is the meaning of this?

Discussion in 'C++' started by nas, May 22, 2007.

  1. nas

    nas Guest

    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!
     
    nas, May 22, 2007
    #1
    1. Advertisements

  2. nas

    Hari Guest

    nas je napisao:
    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
     
    Hari, May 22, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.