summaryrefslogtreecommitdiff
path: root/stdlib/scanf.mli
diff options
context:
space:
mode:
authorPierre Weis <Pierre.Weis@inria.fr>2002-10-08 06:46:15 +0000
committerPierre Weis <Pierre.Weis@inria.fr>2002-10-08 06:46:15 +0000
commite42e2b9266a6abf694a04f32bb1b408e49733228 (patch)
tree31ecbf8d1047e7f3a2159cafc56ec6355e0cb397 /stdlib/scanf.mli
parent144780b72994bad1740fce87d37aef29b74dcda0 (diff)
downloadocaml-e42e2b9266a6abf694a04f32bb1b408e49733228.tar.gz
Revised semantics of @c: the c character is now skipped by default.
This behaviour is documented. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5162 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/scanf.mli')
-rw-r--r--stdlib/scanf.mli12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/scanf.mli b/stdlib/scanf.mli
index 02fd6c24e5..ab7e77f10d 100644
--- a/stdlib/scanf.mli
+++ b/stdlib/scanf.mli
@@ -122,12 +122,12 @@ val bscanf :
[\[ range \]] to delimit the end of the token. A scanning
indication is introduced by a [@] character, followed by some
constant character [c]. It means that the string token should end
- just before the next matching [c]. If no [c] character is
- encountered, the string token spreads as much as possible.
- For instance, ["%s@\t"] reads a string up to the next tabulation
- character. If a scanning indication [\@c] does not follow a
- string conversion, it is ignored and treated as a plain [c]
- character.
+ just before the next matching [c] (which is skipped). If no [c]
+ character is encountered, the string token spreads as much as
+ possible. For instance, ["%s@\t"] reads a string up to the next
+ tabulation character. If a scanning indication [\@c] does not
+ follow a string conversion, it is ignored and treated as a plain
+ [c] character.
Note: the [scanf] facility is not intended for heavy duty
lexical analysis and parsing. If it appears not expressive