for( struct obj_data *cont = ch->carrying ; cont ; cont = cont->next_content )
{ if( isname(arg, cont->name ) ) //Content found, do something with it.
}
for( struct obj_data *cont = ch->carrying ; cont ; cont = cont->next_content )
{ if( isname(arg, cont->name ) ) //Content found, do something with it.
}
for (obj = ch->carrying; obj; obj = next_obj) {
next_obj = obj->next_content;
if (obj != cont && CAN_SEE_OBJ(ch, obj) &&
(obj_dotmode == FIND_ALL || isname(arg1, obj->name))) {
found = 1;
perform_put(ch, obj, cont);
}