This commit is contained in:
Peter Harpending
2025-09-29 13:34:08 -07:00
parent 91f0064a5b
commit 5135a55081
6 changed files with 268 additions and 13 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
% @doc misc utility functions
-module(wfc_utils).
-export([err/2, emsg/2]).
-export([err/2, str/2, emsg/2]).
err(Fmt, Pat) ->
{error, emsg(Fmt, Pat)}.
str(X, Y) -> emsg(X, Y).
emsg(Fmt, Pat) ->
unicode:characters_to_list(io_lib:format(Fmt, Pat)).