Subj : Old C-program To : borland.public.cpp.borlandcpp From : Vladimir Grigoriev Date : Tue Oct 11 2005 02:07 pm Hi. I get an old-style C program and cannot understand some code. Here it is. typedef struct BlockEntry { struct BlockEntry * next; char name[4]; unsigned long key; int lock; } BEntry; int SomeFunction( bentry ) BEntry * bentry; { unsigned long key; if ((char *) bentry == NULL ) key = ONE_CONSTANT; else key = ANOTHER_CONSTANT; /* some code that I have skipped */ bentry->key = key; return 0; } I cannot understand the following code if ((char *) bentry == NULL ) What did a programmer want to say? Is the value of (char *)bentry is different form the value of bentry? Vladimir Grigoriev vlad.moscow@mail.ru .