kripken/emscripten — Issue #97: Printf doesn't work with no endline
Author: BenoitT
Created: 2011-10-14 20:28:20+00:00
State: open

The printf only works if it finish with a \n at the end.

Windows 7
EMScripten Pre-3.0.32
LLVM 3.0 (last version on SVN)
V8

C++ code not working
=======
#include

int main()
{
printf("Test");
return 0;
}

C++ code working (call it twice)
=======
#include

int main()
{
printf("Test\n");
return 0;
}