Possible Duplicate:
Why subtract null pointer in offsetof()?
I hava a question when i read the source code of apache.
in the apr_general.h, there exists a definition as shown below:
#define APR_OFFSET(p_type,field) \
((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
#endif /* !CRAY */
i am juse confused why we should minus the ((char *) NULL)) in this op.
is there anyon that can help me?