-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlista.h
More file actions
33 lines (25 loc) · 763 Bytes
/
lista.h
File metadata and controls
33 lines (25 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Abstracao do TAD de uma lista
*
* @author Andre Santana Fernandes <11208537>
* @author Diogo Castanho Emidio <11297274>
* @author Leonardo Antonetti da Motta <11275338>
*/
#ifndef LISTA_H
#define LISTA_H
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
typedef struct lista_ LISTA;
typedef struct no_ NO;
LISTA *Lista_Criar();
void Lista_Apagar(LISTA **ptr);
bool Lista_Cheia(LISTA *Lista);
bool Lista_Vazia(LISTA *Lista);
bool Lista_Inserir(LISTA *Lista, int zeros, float valor, int categoria);
NO *Lista_No(LISTA *Lista, int index);
NO *Lista_No_Proximo(NO *No);
int Lista_No_Zeros(NO *No);
float Lista_No_Valor(NO *No);
int Lista_No_Categoria(NO *No);
#endif