diff options
author | Pierre Weis <Pierre.Weis@inria.fr> | 2006-10-15 21:58:28 +0000 |
---|---|---|
committer | Pierre Weis <Pierre.Weis@inria.fr> | 2006-10-15 21:58:28 +0000 |
commit | ae5fcbb4c2551f00112d915a8b38564d67b8e787 (patch) | |
tree | 02c0a94f38685d52b52cccd08cb22a77d7671ae7 /stdlib/scanf.mli | |
parent | f976176626c8cd649e074a1b1ca214a742f21061 (diff) |
Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7690 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/scanf.mli')
-rw-r--r-- | stdlib/scanf.mli | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/stdlib/scanf.mli b/stdlib/scanf.mli index 44870a24e..37fe47dda 100644 --- a/stdlib/scanf.mli +++ b/stdlib/scanf.mli @@ -169,9 +169,9 @@ val bscanf : - [\( fmt %\)]: scanning format substitution. Reads a format string to replace [fmt]. The format string read must have the same type as [fmt]. - - [l]: applies [f] to the number of lines read so far. - - [n]: applies [f] to the number of characters read so far. - - [N] or [L]: applies [f] to the number of tokens read so far. + - [l]: returns the number of lines read so far. + - [n]: returns the number of characters read so far. + - [N] or [L]: returns the number of tokens read so far. - [!]: matches the end of input condition. - [%]: matches one [%] character in the input. @@ -207,6 +207,8 @@ val bscanf : conversion never raises exception [End_of_file]: if the end of input is reached the conversion succeeds and simply returns [""]). + Raise [Invalid_argument] if the format string is invalid. + Notes: - the scanning indications introduce slight differences in the @@ -219,7 +221,7 @@ val bscanf : ['\@'] characters). - in addition to relevant digits, ['_'] characters may appear - inside numbers (this is reminiscent to the usual Caml + inside numbers (this is reminiscent to the usual Caml lexical conventions). If stricter scanning is desired, use the range conversion facility instead of the number conversions. |