engine/source/scriptlib/List.c
/* SIDE EFFECTS: sets list->current to the first found node */
SIDE EFFECTS: sets list->current to the first found node
SIDE EFFECTS : sets list - > current to the first found node
int List_FindByName(List *list, const char *name)
{
#ifdef DEBUG
    chklist((List *)list);
#endif
    Node *n = List_GetNodeByName(list, name);
    if (n)
    {
        list->current = n;
        return 1;
    }
    return 0;
}
int List_FindByName ( List * list , const char * name ) { #ifdef DEBUG chklist ( ( List * ) list ) ; #endif Node * n = List_GetNodeByName ( list , name ) ; if ( n ) { list -> current = n ; return 1 ; } return 0 ; }
SIDE EFFECTS: sets list->current to the first found node
SIDE EFFECTS : sets list - > current to the first found node