summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_domain_encodelist.c
blob: 23b45701a8927cace5af7c3bba8adc7de06619fe (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <s6-dns/s6dns-domain.h>

unsigned int s6dns_domain_encodelist (s6dns_domain_t *list, unsigned int n)
{
  register unsigned int i = 0 ;
  for (; i < n ; i++)
    if (!s6dns_domain_encode(list + i)) break ;
  return i ;
}