Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
9d1f0965
Commit
9d1f0965
authored
Apr 06, 2002
by
rswindell
Browse files
Flushes stdout (for Unix) on hit a key prompt.
parent
01221833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/xpdev/wraptest.c
src/xpdev/wraptest.c
+2
-1
No files found.
src/xpdev/wraptest.c
View file @
9d1f0965
...
...
@@ -12,6 +12,7 @@
static
void
getkey
(
void
)
{
printf
(
"Hit any key..."
);
fflush
(
stdout
);
while
(
getch
()
==
0
);
printf
(
"
\r
%20s
\r
"
,
""
);
}
...
...
@@ -39,7 +40,7 @@ int main()
printf
(
"getch() returned %d
\n
"
,
ch
);
}
while
(
ch
!=
ESC
);
#if
0
#if
1
/* BEEP test */
printf
(
"
\n
BEEP() test
\n
"
);
getkey
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment