Mail Archives: djgpp/1998/09/27/18:45:34
This happens due to data flushing. The system has no reason (don't ask me why?)
need to put the data on the screen yet. Use a \n to force data onto the screen,
or fflush(stdout);
--
"DeHackEd"
My Email address in the header is fake (spammers). Email me at this address:
http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked
#include <stdio.h>
int main()
{
char buffer[256];
printf("Input: ");
fflush(stdout);
fgets(buffer, 255, stdin);
printf("\nYou typed %s\n");
}
- Raw text -