summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_fmt.c
blob: 1fa04e3977c0b9d626a3fb9c18c2e38f46a25b74 (plain)
1
2
3
4
5
6
7
8
9
10
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) ;
}