IT Tech/Programming
[C언어] IP 관련 매크로(Macro)
MindEater™
2011. 4. 14. 15:09
반응형
Header =>
#include <netinet/in.h>
#define IPV4_INT_TO_STR(int_ipv4_ptr) inet_ntoa(*((struct in_addr *)int_ipv4_ptr)) #define IPV4_STR_TO_INT(str_ipv4_ptr) (unsigned int) inet_addr(str_ipv4_ptr)
[참고]
헤더 include가 빠지면
error: dereferencing pointer to incomplete type
에러가 납니다.
error: dereferencing pointer to incomplete type
에러가 납니다.
계속 추가...
반응형