From: "Eric C. Cooper" <ecc@cmu.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Bug somewhere...
Date: Tue, 8 Oct 2002 17:26:13 -0400 [thread overview]
Message-ID: <20021008212613.GA15590@stratocaster.home> (raw)
In-Reply-To: <200210082007.WAA27767@pauillac.inria.fr>
On Tue, Oct 08, 2002 at 10:07:01PM +0200, Pierre Weis wrote:
> A lot of problems in here: some are due to the semantics of the Scanf
> module some are due to the implementation, some are even deeper than
> those two!
> ...
> To solve this problem, you should use bscanf and an explicitely
> allocated input buffer that would survive from one call to scanf to
> the next one. Considering that this phenomenon is general concerning
> stdin and scanf, I rewrote the scanf code such that it allocates a
> buffer once and for all. Hence this problem is solved in the working
> sources.
In the C stdio library, this is solved by ungetc() (push back an
already-read character). That might be a useful addition to the
operations on in_channels.
--
Eric C. Cooper e c c @ c m u . e d u
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-10-08 21:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-06 22:57 Alessandro Baretta
2002-10-06 23:06 ` Alessandro Baretta
2002-10-08 20:07 ` Pierre Weis
2002-10-08 21:26 ` Eric C. Cooper [this message]
2002-10-08 23:31 ` Alessandro Baretta
2002-10-07 8:03 ` Pierre Weis
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=20021008212613.GA15590@stratocaster.home \
--to=ecc@cmu.edu \
--cc=caml-list@inria.fr \
/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