summaryrefslogtreecommitdiff
path: root/stdlib/scanf.mli
diff options
context:
space:
mode:
authorPierre Weis <Pierre.Weis@inria.fr>2002-12-08 13:52:02 +0000
committerPierre Weis <Pierre.Weis@inria.fr>2002-12-08 13:52:02 +0000
commit9fd8825b8d2e64340bc29e7add610921124c851c (patch)
treebf883807b22f574a2628f92a6a800e3c74478874 /stdlib/scanf.mli
parent401181791577621182c3ac3766844ebe0739771f (diff)
downloadocaml-9fd8825b8d2e64340bc29e7add610921124c851c.tar.gz
adding C-like %n format for scanf. For printf %n is an alias fr %i.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/scanf.mli')
-rw-r--r--stdlib/scanf.mli6
1 files changed, 5 insertions, 1 deletions
diff --git a/stdlib/scanf.mli b/stdlib/scanf.mli
index 101b8e1de1..4d740dd55b 100644
--- a/stdlib/scanf.mli
+++ b/stdlib/scanf.mli
@@ -45,6 +45,9 @@ val from_function : (unit -> char) -> scanbuf;;
val end_of_input : scanbuf -> bool;;
(** [Scanning.end_of_input scanbuf] tests the end of input condition
of the given buffer. *)
+val begin_of_input : scanbuf -> bool;;
+(** [Scanning.begin_of_input scanbuf] tests the begin of input condition
+ of the given buffer. *)
end;;
@@ -114,7 +117,8 @@ val bscanf :
first character of the range (or just after the [^] in case of
range negation); hence [\[\]\]] matches a [\]] character and
[\[^\]\]] matches any character that is not [\]].
- - [N]: applies [f] to the number of characters read so far.
+ - [n]: applies [f] to the number of characters read so far.
+ - [N]: applies [f] to the number of tokens read so far.
- [%]: matches one [%] character in the input.
The field widths are composed of an optional integer literal