i have:
how can i cast the function so it's length = 15, and itll truncate the rest (maybe)Code:ipAddr=(char) inet_ntoa(ia); //ipAddr = char ipAddr[15]
i tried this, doesnt work
Code:ipAddr = (char [15]) inet_ntoa(ia);
thanks
-nabeel
|
Results 1 to 6 of 6
Thread: giving function cast sizeThreaded View
|
Click Here to Expand Forum to Full Width |