summaryrefslogtreecommitdiffstats
path: root/stdlib/scanf.mli
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/scanf.mli')
-rw-r--r--stdlib/scanf.mli8
1 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/scanf.mli b/stdlib/scanf.mli
index adf700d1a..646fcccdb 100644
--- a/stdlib/scanf.mli
+++ b/stdlib/scanf.mli
@@ -258,7 +258,6 @@ val kscanf :
val bscanf_format :
Scanning.scanbuf -> ('a, 'b, 'c, 'd) format4 ->
(('a, 'b, 'c, 'd) format4 -> 'e) -> 'e;;
-
(** [bscanf_format ib fmt f] reads a format string token in buffer [ib],
according to the format string [fmt], and applies the function [f] to the
resulting format string value.
@@ -266,6 +265,11 @@ val bscanf_format :
as [fmt]. *)
val sscanf_format :
+ string -> ('a, 'b, 'c, 'd) format4 ->
+ (('a, 'b, 'c, 'd) format4 -> 'e) -> 'e;;
+(** Same as {!Scanf.bscanf}, but inputs from the given string. *)
+
+val scan_format :
string -> ('a, 'b, 'c, 'd) format4 -> ('a, 'b, 'c, 'd) format4;;
-(** Same as {!Scanf.bscanf_format}, but converts the given string to a format
+(** Same as {!Scanf.sscanf_format}, but converts the given string to a format
string. *)