summaryrefslogtreecommitdiff
path: root/stdlib/scanf.mli
diff options
context:
space:
mode:
authorPierre Weis <Pierre.Weis@inria.fr>2002-05-17 08:17:52 +0000
committerPierre Weis <Pierre.Weis@inria.fr>2002-05-17 08:17:52 +0000
commita08d0285f15cde65b7d9df267b69f4390640ce84 (patch)
tree940e604863eef3d838fac34727c0c4e06cd26cea /stdlib/scanf.mli
parentd97864a3f753ae7db186de2ded5c1796c2949bd5 (diff)
downloadocaml-a08d0285f15cde65b7d9df267b69f4390640ce84.tar.gz
Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4825 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/scanf.mli')
-rw-r--r--stdlib/scanf.mli14
1 files changed, 6 insertions, 8 deletions
diff --git a/stdlib/scanf.mli b/stdlib/scanf.mli
index aec2392041..5b24a1f559 100644
--- a/stdlib/scanf.mli
+++ b/stdlib/scanf.mli
@@ -33,11 +33,9 @@ val fscanf : in_channel -> ('a, Scanning.scanbuf, 'b) format -> 'a -> 'b;;
- [i]: reads an optionally signed integer
(usual input formats for hexadecimal ([0x\[d\]+] and [0X\[d+\]]),
octal ([0o\[d\]+]), and binary [0b\[d\]+] notations are understood).
- - [u]: convert an integer argument to unsigned decimal.
- - [x]: convert an integer argument to unsigned hexadecimal,
- using lowercase letters.
- - [X]: convert an integer argument to unsigned hexadecimal,
- using uppercase letters.
+ - [u]: reads an unsigned decimal integer.
+ - [x]: reads an unsigned hexadecimal integer with lowercase letters.
+ - [X]: reads an unsigned hexadecimal integer with uppercase letters.
- [o]: reads an unsigned octal integer.
- [s]: reads a string argument (string ends with a space).
- [S]: reads a delimited string argument (delimitors and special
@@ -59,9 +57,9 @@ val fscanf : in_channel -> ('a, Scanning.scanbuf, 'b) format -> 'a -> 'b;;
- [Ld], [Li], [Lu], [Lx], [LX], [Lo]: reads an [int64] argument to
the format specified by the second letter.
- [\[ range \]]: reads characters that maches one of the characters
- mentioned in the range of characters [range] (or not mentioned in
- it, if the range started by [^]).
- - [N]: applied [f] to the number of characters read so far.
+ mentioned in the range of characters [range] (or not mentionned in
+ it, if the range starts by [^]).
+ - [N]: applies [f] to the number of characters read so far.
- [%]: matches one [%] character in the input.
The field widths are composed of an optional integer literal