In GNU-GCC with Linux this is working
#define sprintfc(string, ...) sprintf(string+strlen(string), ##__VA_ARGS__)
Is there definition with same effect for Visual Studio 2010?
In GNU-GCC with Linux this is working #define sprintfc(string, …) sprintf(string+strlen(string), ##__VA_ARGS__) Is there
Share
Microsoft Visual C compiler does support variadic macros. However, the problem is the GCC extension ##, which removes the leading comma if no arguments are passed.
Because sprintf() is never called without a second argument, your code should work fine if you just remove the ##.