Hello to all
Is there a way to get stdout without a LF?
I have something like
case INPUT_CMD:
fflush(stdin);
printf("\nEnter Command:");
fgets(input, INPUT_STRING, stdin);
spitest.cmd = input[0]; /* First char is the command */
that in Linux prints message and waits for
Hey Grr,
You need the fflush(stdout) call to be *after* the printf("\nEnter
Command:").
If the printf doesn't end with \n, then the stdout won't be flushed.
Ken
On 1/25/21 11:25 AM, Grr wrote:
Hello to all
Is there a way to get stdout without a LF?
I have something like
case INPUT_CMD: