struktura język c

0

Witam!
Mam problem dotyczący użycia funkcji na stosie i nie wiem w jaki sposób mogę go rozwiązać. Otóż mam taki kod funkcji:

 
int pop(stos **calc, int *x){
  stos *liczba;
  ile_stos *wartosc;
  
  if(wartosc->zlicz==0)
    {  
    printf("Stos jest pusty.\n");
    return 0;
    }else {
          *calc->liczba = x;
          liczba= *calc;
          *calc = (*calc)->nastepny;

    return *calc->liczba;
  }
}

Przy kompilacji wyrzuca błąd
stos.c16: error: request for member ‘liczba’ in something not a structure or union
stos.c17: error: request for member ‘liczba’ in something not a structure or union

Zastosowana struktura:

 
typedef struct element{
  int liczba;
  struct element *nastepny;
} stos;                

typedef struct {
  int zlicz;
  void *el1;
} ile_stos;
1

(*calc)->liczba

0

wybawco :)

1 użytkowników online, w tym zalogowanych: 0, gości: 1