I came to this line of code:
fprintf(stdout, "message", fflush(stdout));
Note that the message does not contain% -tag.
Is it safe in visual c ++? fflush () returns 0 on success and EOF on failure. What will fprintf () do with this extra parameter?
At first I thought it was a strange hack to add a call to fflush () without requiring an extra line. But it is written that the call to fflush () will be executed before the call to fprintf (), so that it does not clear the message that is being printed right now, but those that are waiting to be reddened if they are ... am I right?
jumar source share