Module io_lib

An implementation of the Erlang/OTP io_lib interface.

Description

This module implements a strict subset of the Erlang/OTP io_lib interface.

Function Index

format/2 Format string and data to a string.

Function Details

format/2


format(Format::string(), Args::list()) -> string()

Format: format string
Args: format argument

returns: string

Format string and data to a string. Approximates features of OTP io_lib:format/2, but only supports ~p and ~n format specifiers. Raises badarg error if the number of format specifiers does not match the length of the Args.