appel à l'aide de printf va_list

void TestPrint(char* format, ...)
{
    va_list argList;

    va_start(argList, format);
    printf(format, argList);
    va_end(argList);
}


int main()
{
    TestPrint("Test print %s %d\n", "string", 55);
    return 0;
}

J'ai besoin d'obtenir:

Test print string 55

En fait, je reçois des ordures de sortie. Quel est le problème dans ce code?

InformationsquelleAutor Alex F | 2011-05-12