Subj : Re: Old C-program To : borland.public.cpp.borlandcpp From : Vladimir Grigoriev Date : Tue Oct 11 2005 06:54 pm Yes you are right. The code was modified by several programmers at different time. But I need understand what it do at present! Vladimir Grigoriev "Ed Mulroy" wrote in message news:434bc1db@newsgroups.borland.com... > I think you are looking at source code that has been modified or updated > over the years. When a programmer updates the code he is going to do it > with the idea of it working with a current compiler. It is also likely that > the code was updated more than once and not always by the same programmers. > > . Ed > > > Vladimir Grigoriev wrote in message > > news:434baabc$1@newsgroups.borland.com... > > > > Also it is interesting to note that in the same source module I > > found the following code > > > > if ((bentry = (BENTRY *)GetEntryBlock() ) != NULL) > > > > Why does a programmer in one case use (char *) pointer and > > in another case use (BENTRY *) pointer when compares with > > NULL? It is strange... > > .