table of contents
fmt_ip4(3) | Library Functions Manual | fmt_ip4(3) |
NAME¶
fmt_ip4 - write a formatted ASCII representation of an IPv4 numberSYNTAX¶
#include <ip4.h>DESCRIPTION¶
fmt_ip4 formats an IPv4 number in dotted-decimal ASCII representation from ip and writes the result into dest. It returns the number of bytes written.EXAMPLE¶
#include <ip4.h>char buf[IP4_FMT];
char ip[4];
buf[fmt_ip4(buf,ip)]=0;