* University of Maryland at College Park
*/
/*
- * $Id: sl.c,v 1.1.2.2.2.1 2004/04/23 11:44:51 martinea Exp $
+ * $Id: sl.c,v 1.1.2.2.2.2 2005/09/30 19:01:53 martinea Exp $
*
* A doubly linked list of string (char *)
*/
sl = new_sl();
}
- for(b=sl->first; b != NULL < 0; b=b->next) {
+ for(b=sl->first; b != NULL; b=b->next) {
int i = strcmp(b->name, name);
if(i==0) return(sl); /* already there, no need to insert */
if(i>0) break;