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.

28 lines
753 B

  1. .TH scan_ip6_flat 3
  2. .SH NAME
  3. scan_ip6_flat \- parse an IPv6 number in flat ASCII representation
  5. .B #include <ip6.h>
  6. int \fBscan_ip6_flat\fP(const char *\fIsrc\fR,char \fIip\fR[16]);
  8. scan_ip6_flat parses an IPv6 number in flat ASCII representation
  9. from \fIsrc\fR and writes the result into \fIip\fR. It returns the
  10. number of bytes read from \fIsrc\fR or 0 if the parsing failed.
  11. scan_ip6_flat accepts upper and lower case hex letters.
  12. The flat representation should have been output by fmt_ip6_flat.
  14. #include <str.h>
  15. .br
  16. #include <ip6.h>
  17. char buf[]="00000000000000000000000000000001";
  18. char ip[16];
  19. if (scan_ip6_flat(buf,ip) != str_len(buf))
  20. parse_error();
  21. .SH "SEE ALSO"
  22. fmt_ip6_flat(3), scan_ip6(3)