(2021-07-15, 11:37 PM)Kwarde Wrote: I editted my post while you were replying. Check out the last code, that does what you want ;-)
And indeed. The strfind() thing I posted would accept all IPs starting with "192.168.1" (I don't see how that could become an issue tho)
how did this work? i'm kinda confused from that sscanf thing, like what's that
Code:
p<.>dddd
Code:
sscanf(ip, "p<.>dddd", ip_part1, ip_part2, ip_part3, ip_part4);