erl_format
erl_format
C library
erl_format
Library summary
Create and match Erlang terms.
Description
This module contains two routines: one general function for creating Erlang terms and one for pattern matching Erlang terms.
Exports
ETERM *erl_format(FormatStr, ...)
Types:
char *FormatStr;
A general function for creating Erlang terms using a format specifier and a corresponding set of arguments, much in the way printf()
works.
FormatStr
is a format specification string. The valid format specifiers are as follows:
-
~i
- Integer -
~f
- Floating point -
~a
- Atom -
~s
- String -
~w
- Arbitrary Erlang term 登录查看完整内容