translate: fixes
[ia32rtools.git] / tests / varargs.expect.c
... / ...
CommitLineData
1int sub_test(const char * a1, ...)
2{
3 union { u32 d[128]; u8 b[512]; } sf;
4 va_list ap;
5 u32 eax;
6
7 va_start(ap, a1);
8 eax = (u32)&sf.d[0]; // var_200
9 eax = _vsnprintf((char*)eax, 0x200, (const char*)a1, ap); // arg_0
10 va_end(ap);
11 return eax;
12}
13