Problem while initializing function poniter?
I have function pointer as follow

    void (*stream) (const char *)

and im initializing the pointer as follows:

    char dumpBuffer[512];
    snprintf (dumpBuffer, sizeof (dumpBuffer), "<Pcm_DigitalIoChannelList>\n");
    stream (dumpBuffer);

can any on tell me is is correct?

Thanks in advance.



Problem while initializing function poniter?
===

I have function pointer as follow

    void (*stream) (const char *)

and im initializing the pointer as follows:

    char dumpBuffer[512];
    snprintf (dumpBuffer, sizeof (dumpBuffer), "<Pcm_DigitalIoChannelList>\n");
    stream (dumpBuffer);

can any on tell me is is correct?

Thanks in advance.


