summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_fmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/tain_fmt.c')
-rw-r--r--src/libstddjb/tain_fmt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstddjb/tain_fmt.c b/src/libstddjb/tain_fmt.c
new file mode 100644
index 0000000..1fa04e3
--- /dev/null
+++ b/src/libstddjb/tain_fmt.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <skalibs/fmtscan.h>
+#include <skalibs/tai.h>
+
+unsigned int tain_fmt (char *s, tain_t const *a)
+{
+ char pack[TAIN_PACK] ;
+ tain_pack(pack, a) ;
+ return ucharn_fmt(s, pack, TAIN_PACK) ;
+}