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