All pastes #205608 Raw Edit

Unnamed

public text v1 · immutable
#205608 ·published 2006-10-16 22:54 UTC
rendered paste body
int FullTest (TypeList Lista){
    return (Lista.Last => TAM);
}

int InsertList (TypeItem valor, TypeList *Lista){
    if (FullTest(Lista) != 0) {
        printf("Full");
    }
    else {
        Lista->Item[Lista->Last] = valor;
        Lista->Last++;
    }
}