All pastes #469346 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-03 18:09 UTC
rendered paste body
/*SYNARTHSH EYRESHSHS SE ENA EPIPEDO*/
int one_level_eyresh(int level,char * name)
{
        struct symbol_table *cur=NULL;
        int index=0;

        if(array[level]==NULL)
                return 0;
        index=hash(name);
        if(array[level][index]!=NULL)
        {
                cur=array[level][index];
                while(cur!=NULL)
                {
                        if(strcmp(cur->u.v->name,name)==0)
                        {
                                print_data(cur);
                                return 1;
                        }
                        else
                                cur=cur->next;
                }
        }

        return 0;
}

/*SYNARTHSH EYRESHS SE OLA TA EPIPEDA*/
void eyresh(char * name)
{
        int index1=0,i=-1;

        while(index1<ARRAY_SIZE)
        {
                i=one_level_eyresh(index1,name);
                if(i!=0)
                        return;
                index1++;
        }
        if(i==0)
                printf("TO STOIXEIO POY ZHTHSATE DEN BRETHIKE\n");
        return;
}