[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: print stdout and flush
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 26 May 2011 11:31:31 -0300
> I am wondering why static int luaB_print (lua_State *L) function does not have a fflush(stdout) after fputs("\n", stdout);
Because ANSI C says that stdout is line buffered? At least I thought so but
some people disagree: http://stackoverflow.com/questions/3723795/is-stdout-line-buffered-unbuffered-or-indeterminate-by-default
So, yes, perhaps it's best to fflush(stdout) after all, just in case.