I would like to know if this looks correct :
while((next !=NULL) && (strcmp(next->name, some_string) < 0) { //some process }
Yes, in C++ short circuit and and or operators are available.
and
or
Here's a question answered in the C-faq on the subject.