diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2003-07-01 16:30:12 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2003-07-01 16:30:12 +0000 |
commit | b37e53cef16bf6aded16336633c0ee1215794e5d (patch) | |
tree | 8127896e5ea51f7a4e43ffa27f92019797e6a9f2 /stdlib/scanf.mli | |
parent | 49ee5083e28087c6213cc71d1df3b32c65543a56 (diff) |
PR#1675, voir aussi PR#1438
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5641 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/scanf.mli')
-rw-r--r-- | stdlib/scanf.mli | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/stdlib/scanf.mli b/stdlib/scanf.mli index c58e7d661..77425855b 100644 --- a/stdlib/scanf.mli +++ b/stdlib/scanf.mli @@ -113,7 +113,6 @@ val bscanf : - [u]: reads an unsigned decimal integer. - [x] or [X]: reads an unsigned hexadecimal integer. - [o]: reads an unsigned octal integer. - - [b]: reads an unsigned binary integer. - [s]: reads a string argument (by default strings end with a space). - [S]: reads a delimited string argument (delimiters and special escaped characters follow the lexical conventions of Caml). @@ -126,11 +125,13 @@ val bscanf : floating-point number in decimal notation, in the style [dddd.ddd e/E+-dd]. - [B]: reads a boolean argument ([true] or [false]). - - [ld], [li], [lu], [lx], [lX], [lo], [lb]: reads an [int32] argument to + - [b]: reads a boolean argument (for backward compatibility; do not use + in new programs). + - [ld], [li], [lu], [lx], [lX], [lo]: reads an [int32] argument to the format specified by the second letter (decimal, hexadecimal, etc). - - [nd], [ni], [nu], [nx], [nX], [no], [nb]: reads a [nativeint] argument to + - [nd], [ni], [nu], [nx], [nX], [no]: reads a [nativeint] argument to the format specified by the second letter. - - [Ld], [Li], [Lu], [Lx], [LX], [Lo], [Lb]: reads an [int64] argument to + - [Ld], [Li], [Lu], [Lx], [LX], [Lo]: reads an [int64] argument to the format specified by the second letter. - [\[ range \]]: reads characters that matches one of the characters mentioned in the range of characters [range] (or not mentioned in |