inet_addr
I was not doing any error checking, basically i validated anything that started with atleast a single digit.