update README

Signed-off-by: etienne <etienne.basset@ensta.org>
get_*ip* are more strict, they do not check for surrounding spaces

Signed-off-by: etienne <etienne.basset@ensta.org>
add char2int helper

Signed-off-by: etienne <etienne.basset@ensta.org>
fix char2int

Signed-off-by: etienne <etienne.basset@ensta.org>
new ver of get_single_ipv6

Signed-off-by: etienne <etienne.basset@ensta.org>
simplify get_single_ipv6

Signed-off-by: etienne <etienne.basset@ensta.org>
cleanup get_single_ipv6

Signed-off-by: etienne <etienne.basset@ensta.org>
test for Embedded IPv4 only if we counted '.'
correct debug message

Signed-off-by: etienne <etienne.basset@ensta.org>
make char2int inline

Signed-off-by: etienne <etienne.basset@ensta.org>
make get_single_ipvX (const char *s)
so we dont have to clone string in get_single_ip

Signed-off-by: etienne <etienne.basset@ensta.org>
update get_single_ipv4 to not depend on scanf (speed up)
instead, hand-code %d
correct a bug in get_subnet_or_ip if nothing after '/'

Signed-off-by: etienne <etienne.basset@ensta.org>
safeguard IPv6 addr parsing against too many chars in one block

Signed-off-by: etienne <etienne.basset@ensta.org>