Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
284 B

#include "ip6.h"
#include "haveinline.h"
#include "fmt.h"
size_t fmt_ip6_flat(char *s,const char ip[16])
{
int i;
if (!s) return 32;
for (i=0; i<16; i++) {
*s++=fmt_tohex((char)((unsigned char)ip[i] >> 4));
*s++=fmt_tohex((unsigned char)ip[i] & 15);
}
return 32;
}