B
Ben Bacarisse
Army1987 said:while(strcmp(ptrlist, ""))
This test would be simpler with a NULL as the end marker.
I agree that it is silly to use an empty string as a sentinel, but
how is while(ptrlist) simpler than while(ptrlist[0])?
True. I forgot that I had already explained how to remove the strcmp
call!
Of course, it *is* simpler by almost any measure, but I won't argue
the point -- I know exactly what you mean. Once the function call has
been replaced the two test are essentially equivalent.