| delorie.com/archives/browse.cgi | search |
| From: | "Newbie" <new AT no_spam DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Why don't printf work properly with getch ()? |
| Date: | 8 Oct 1997 02:06:45 GMT |
| Organization: | Sprint Canada Inc. |
| Lines: | 18 |
| Message-ID: | <01bcd38e$b9e2da40$0b0867d1@default> |
| NNTP-Posting-Host: | hme1-1.news.sprint.ca |
| Cache-Post-Path: | grolsch!unknown AT spc-isp-cal-uas-1-11 DOT sprint DOT ca |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I had some problem with printf and getch working together.
Seems to me that the last printf preceeding a getch is executed only after
a key is pressed.
examples:
printf ("\n1");
printf ("\n2");
printf ("\n3");
getch ();
would produce
1
2
waiting for keystroke,
after a key is pressed
3
Is this a know bug with djgpp? Is there any way to work around this?
Thanks.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |