1scan_ip6_flat(3)           Library Functions Manual           scan_ip6_flat(3)
2
3
4

NAME

6       scan_ip6_flat - parse an IPv6 number in flat ASCII representation
7

SYNTAX

9       #include <ip6.h>
10
11       int scan_ip6_flat(const char *src,char ip[16]);
12

DESCRIPTION

14       scan_ip6_flat  parses  an IPv6 number in flat ASCII representation from
15       src and writes the result into ip. It returns the number of bytes  read
16       from src or 0 if the parsing failed.
17
18       scan_ip6_flat accepts upper and lower case hex letters.
19
20       The flat representation should have been output by fmt_ip6_flat.
21

EXAMPLE

23       #include <str.h>
24       #include <ip6.h>
25
26         char buf[]="00000000000000000000000000000001";
27         char ip[16];
28         if (scan_ip6_flat(buf,ip) != str_len(buf))
29           parse_error();
30
31

SEE ALSO

33       fmt_ip6_flat(3), scan_ip6(3)
34
35
36
37                                                              scan_ip6_flat(3)
Impressum