mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
2cd3989cb3
Closes #12706
11 lines
204 B
C
11 lines
204 B
C
#include <stdarg.h>
|
|
|
|
void testFnPtr(int n, ...) {
|
|
va_list ap;
|
|
va_start(ap, n);
|
|
|
|
void (*fnPtr)(int) = va_arg(ap, void (*)(int));
|
|
int arg = va_arg(ap, int);
|
|
fnPtr(arg);
|
|
va_end(ap);
|
|
} |