does C99 or MSL (either will do) allow me to pass through a va_list twice
like below?

    CharArray(const char *format, ...)
    {
        va_list vargs;

        //get the length of the string
        va_start(vargs, format);
        uint32 size = vsprintf(NULL, format, vargs) + 1;
        va_end(vargs);

        //allocate the storage
        char *data = (char *)malloc(size);

        //print the string
        va_start(vargs, format);
        vsprintf(data, format, vargs);
        va_end(vargs);
    }

KP



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to