make get_single_ip take a length argument

Signed-off-by: etienne <etienne.basset@ensta.org>
correct len usage in get_single_ipvX

Signed-off-by: etienne <etienne.basset@ensta.org>
string2mask now has a len argument

Signed-off-by: etienne <etienne.basset@ensta.org>
update get_subnet_or_ip to not copy its string argument

Signed-off-by: etienne <etienne.basset@ensta.org>
st_scanf : get rid of atoi and support '%ld' LONG

Signed-off-by: etienne <etienne.basset@ensta.org>
st_scanf : add  helper int mach_char_against_range

Signed-off-by: etienne <etienne.basset@ensta.org>
use mach_char_against_range where it was hardcoded

Signed-off-by: etienne <etienne.basset@ensta.org>
[CLEANUP] st_scanf : make some functions static

Signed-off-by: etienne <etienne.basset@ensta.org>
[CLEANUP] st_scanf : remove unnecessary func declaration

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