On Tue, 1 Oct 2002, Satya wrote:
h=hid; while(h!=NULL) { if(memcmp(b,h->msgid,16)==0) { memcpy(c,h->id,8); } }
well, assuming you've got b and c defined somewhere earlier, all I can say is that h isn't changing anywhere, so if it wasn't null at the start, it never will be null.
then again, there could be more to your code happening later in the while loop (which isn't terminated so far).
I really think we'd need to see more of the code.
Philip