B
Bill Cunningham
On this page:
http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/socket.h.html
The sockaddr_storage struct is to be cast as a sockaddr. I can think of
another way to do it being designing another struct object, would that be
considered the proper way to use the sort of programming I am looking at. I
came into C with one thing in mind. No casts. I am assuming this is safe
since the standard asks for this. Should I ignore the standard and rewrite
not using casts or is this considered an exception to the rule?
Bill
http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/socket.h.html
The sockaddr_storage struct is to be cast as a sockaddr. I can think of
another way to do it being designing another struct object, would that be
considered the proper way to use the sort of programming I am looking at. I
came into C with one thing in mind. No casts. I am assuming this is safe
since the standard asks for this. Should I ignore the standard and rewrite
not using casts or is this considered an exception to the rule?
Bill