Source

ocaml-core / base / core / lib / core_printf.mli

The branch 'bash' does not exist.
(* Standard Library *)

val fprintf  : out_channel -> ('r, out_channel, unit) format -> 'r
val printf   :                ('r, out_channel, unit) format -> 'r
val eprintf  :                ('r, out_channel, unit) format -> 'r
val ifprintf : 'a ->                   ('r, 'a, unit) format -> 'r
val sprintf  :                     ('r, unit, string) format -> 'r
val bprintf  :       Buffer.t -> ('r, Buffer.t, unit) format -> 'r

val kfprintf :
  (out_channel -> 'a) -> out_channel -> ('r, out_channel, unit, 'a) format4 -> 'r
val ksprintf :
  (string -> 'a) -> ('r, unit, string, 'a) format4 -> 'r
val kbprintf :
  (Buffer.t -> 'a) -> Buffer.t -> ('r, Buffer.t, unit, 'a) format4 -> 'r

(** {6 Formatting error and exit functions} *)

(** raises Failure *)
val failwithf : ('r, unit, string, unit -> _) format4 -> 'r

(** raises Invalid_arg *)
val invalid_argf : ('r, unit, string, unit -> _) format4 -> 'r

(** print to stderr; exit 1 *)
val exitf : ('r, unit, string, unit -> _) format4 -> 'r
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.