<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<br />
<div>I'm stuck porting a macro from C. Below is the original define. The part I'm struggeling with is the right most part after the - sign. <br /><br />#define GETNEXT(x) ((LList *)(((char *) x) - ((char *) & (((LList *)0)^.next))))<br /><br />Does anyone know what is meant with the define? Obviously LList is a linked list struct that has a prev and next variable. But what does the & and 0 mean?<br /><br />Appreciate any help.<br /><br />Regards, Darius</div>
</body></html>