summaryrefslogtreecommitdiff
path: root/src/libstddjb/ip4_fmtu32.c
blob: d4833e8e564d513c7e662be33d676512debb57b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/uint32.h>
#include <skalibs/fmtscan.h>

unsigned int ip4_fmtu32 (char *s, uint32 ip)
{
  char pack[4] ;
  uint32_pack_big(pack, ip) ;
  return ip4_fmt(s, pack) ;
}