I usually write something like: for( i=0 ; i<100 ; i++ ){ if( found ){ action; break; } } if( i == 100 ){ /* not found */ other action; } Lew Mammel, Jr. ihuxr!lew