i have:

Code:
ipAddr=(char) inet_ntoa(ia);

//ipAddr = char ipAddr[15]
how can i cast the function so it's length = 15, and itll truncate the rest (maybe)

i tried this, doesnt work

Code:
ipAddr = (char [15]) inet_ntoa(ia);

thanks
-nabeel