I am trying to use a conversion character to count the number of chars printed so far with the following code.
#include
int main(void) {
It looks like this is a Windows issue, this article says:
The default C-RunTime Library (msvcrt.dll) on Vista seems to have %n disabled by default - security reasons of course
It looks like there is a _set_printf_count_output to enable it.
BLUEPIXY found that in order to get it working outside Visual Studio you need to define __USE_MINGW_ANSI_STDIO:
#define __USE_MINGW_ANSI_STDIO 1