TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: James Jones 76257,562 (X)
from: Bob van der Poel 76510,2203
date: 1990-06-02 01:05:27
subject: #3992-#C file buffering

#: 4069 S3/Languages
    02-Jun-90  01:05:27
Sb: #3992-#C file buffering
Fm: Bob van der Poel 76510,2203
To: James Jones 76257,562 (X)


Okay, here is what I have done. I've written an input routine with editing
(delete, insert, etc.). It's quite simple to use--you just pass it a string to
edit, and the input/output fileptrs. It works just fine, so long as both
streams are set for single character (unbuffered) mode. This limits the use of
the routine. I would like the routine itself to set up the proper mode
(probably with setbuf()), do its thing, and then restore things. It just
occurred to me that I could open an duplicate path via I$DUP (hmmm, isn't there
a standard library function too?), and set that path up as I need it. I guess I
would still have to flush the output buffer before doing this but the input
buffer should be okay. Guess I should just try it...

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.