Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
VA_LIST_FUNC_MACRO.cpp
Go to the documentation of this file.
1// checking for va-list function macros
2
3
25#include <stdio.h>
26#include <string.h>
27
28#define foo(buf, s, ...) (sprintf (buf, s, __VA_ARGS__))
29
30int main ()
31{
32 char buf [256] = "";
33 foo (buf, "%s %d", "string", 1);
34 return strcmp (buf, "string 1");
35}
36
#define buf
Definition 17.names.cpp:452
#define foo(buf, s,...)
int main()