This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

variable arguments CCS 5.2 c6657 Gauss DSP SYSBIOS 6.34.xx.xx



I am trying to implement a function with a variable arguments. The pointer 'fmt' becomes NULL and crashes. 

The moment it enters st_sdpf() function, fmt becomes NULL. Is there any option setting setting required here??

int st_sdpf(int stream, const char *fmt, ... )
{
if (fmt == NULL)
{
platform_write("error in st_dpf: NULL fmt\n");
return (-1);
}.

......................

}

This problem of crash or NULL - fmt occurs only if the st_sdpf() has more than one argument. if st_sdpf(const char *fmt), this is fine.