From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] APE question
Date: Fri, 12 Oct 2001 15:32:30 +0100 [thread overview]
Message-ID: <20011012142001.1061019A85@mail.cse.psu.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
i think on some platforms reading from stdin does an automatic flush on
stdout. this might even be the standard.
anyway, it's probably safer to do
printf("\nQuit [q], confirm [y], or change [menu] settings: ");
fflush(stdout);
/* read one char */
ch = getchar();
[-- Attachment #2: Type: message/rfc822, Size: 1951 bytes --]
To: 9fans@cse.psu.edu
Subject: [9fans] APE question
Date: Fri, 12 Oct 2001 16:21:26 +0200
Message-ID: <cej-1011012162124.A01246@cejchan.gli.cas.cz>
Friends,
under APE, the following part of code:
printf("\nQuit [q], confirm [y], or change [menu] settings: ");
/* read one char */
ch = getchar();
does not print out the message before waiting for a character input, unless it is flushed
e.g. by adding
printf("\n");
before line 3. Is this an intention? If so, could you tell me a better workaround than this with blank printf()?
Sorry fot ignorance,
--peter.
--
Peter A Cejchan
biologist
Acad. Sci., Prague, CZ
<cej at cejchan dot gli dot cas dot cz>
next reply other threads:[~2001-10-12 14:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-12 14:32 rog [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-10-12 14:33 pac
2001-10-12 14:34 ` Boyd Roberts
2001-10-12 14:40 ` Laura Creighton
2001-10-12 14:45 ` Howard Trickey
2001-10-12 14:58 ` Howard Trickey
2001-10-15 4:20 ` pac
2001-10-15 9:11 ` Douglas A. Gwyn
2001-10-12 14:21 pac
2001-10-12 14:14 presotto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011012142001.1061019A85@mail.cse.psu.edu \
--to=rog@vitanuova.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).