I am facing some problem in C language to extract a valid IP(v4 and v6) from oracle DB for example.
1, if the field is having a ip like : 10.2.33.4.5-34
I should be able to extract 10.2.33.4 only
2, if field have abc-100.2.33.4.545
extract only 100.2.33.4
Hope there is a solution to this in C .
Thanks and Regards,
Mohib
The above code should be used in C.