[cc65] Varargs

From: Dan Winslow <danwinslow1cox.net>
Date: 2009-03-20 22:49:25
Is this a valid way to handle varargs in CC65?

 

void xtrace( char *s, ... )

{

    va_list vargs;

    va_start(s,vargs);

    vprintf(s,vargs);

    va_end(vargs);

}

 

<code omitted>

 

xtrace("test : %s","it works");



----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Mar 20 22:49:37 2009

This archive was generated by hypermail 2.1.8 : 2009-03-20 22:49:40 CET