Current section
Files
Jump to
Current section
Files
lib/System/IO/Printf.erl
%%---------------------------------------------------------------------------
%% |
%% Module : Printf
%% Copyright : (c) 2020-2021 EMQ Technologies Co., Ltd.
%% License : BSD-style (see the LICENSE file)
%%
%% Maintainer : Feng Lee, feng@emqx.io
%% Yang M, yangm@emqx.io
%% Stability : experimental
%% Portability : portable
%%
%% The Printf FFI module.
%%
%%---------------------------------------------------------------------------
-module('Printf').
-include("../../Foreign.hrl").
-export([ print/1
, println/1
, println_/1
]).
print(S) -> ?IO(io:format(S)).
println(S) -> ?IO(io:format(S ++ "~n")).
println_(S) -> ?IO(io:format("~ts~n",[S])).