I'm stuck trying to get some stdarg.h macros working with CC. Here's an example:
void my_printf(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
sprintf(combuf, fmt, args);
va_end(args);
etc.
When I call my_printf and pass it the usual parameters, the args in combuf are garbage. The text looks OK, however. When I single step and monitor local vars, CC tells me that args has an address of 0x0000 and a value of ".". This may suggest it's a null and that va_start never initialized it. I don't know what the issue is here. My code seems consistent with various examples I've seen, plus the usage description specified in the TI compiler UG. Any ideas as to what am I'm missing?