-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCachorros.h
52 lines (46 loc) · 1.71 KB
/
Cachorros.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef CACHORROS_H
#define CACHORROS_H
typedef struct
{
int id;
char nombre[20];
int dias;
char raza[20];
char reservado[3];
char genero[2];
int peso;
char vacunado[3];
}eCachorro;
#endif // CACHORROS_H
#include "LinkedList.h"
int menu(void);
int filterMenu(void);
int informesMenu(void);
int guardarArchivoMenu(void);
eCachorro* cachorro_new(void);
eCachorro* cachorro_newParametros(char* idStr, char* nombreStr, char* diasStr, char* razaStr, char* reservadoStr, char* generoStr, char* pesoStr, char* vacunadoStr);
void cachorro_delete(eCachorro* this);
int cachorro_setId(eCachorro* this, int id);
int cachorro_getId(eCachorro* this, int* id);
int cachorro_setNombre(eCachorro* this, char* nombre);
int cachorro_getNombre(eCachorro* this, char* nombre);
int cachorro_setDias(eCachorro* this, int dias);
int cachorro_getDias(eCachorro* this, int* dias);
int cachorro_setRaza(eCachorro* this, char* raza);
int cachorro_getRaza(eCachorro* this, char* raza);
int cachorro_setReservado(eCachorro* this, char* reservado);
int cachorro_getReservado(eCachorro* this, char* reservado);
int cachorro_setGenero(eCachorro* this, char* genero);
int cachorro_getGenero(eCachorro* this, char* genero);
int cachorro_setPeso(eCachorro* this, int peso);
int cachorro_getPeso(eCachorro* this, int* peso);
int cachorro_setVacunado(eCachorro* this, char* vacunado);
int cachorro_getVacunado(eCachorro* this, char* vacunado);
int printCachorro(eCachorro* this);
int printCachorros(LinkedList* this);
int validateCachorro(eCachorro* this);
int filtrarMenores45(void* pElement);
int filtrarMachos(void* pElement);
int filtrarHembras(void* pElement);
int filtrarCallejeros(void* pElement);
int ordenarListaPorId(void* first, void* second);