- `WinMain@16'
- ld returned 1 exit status
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
typedef struct edificio{
char nome[51];
int hora;
int min;
struct edificio *prox;
}edf;
char nome[51];
int hora;
int min;
edf *lista;
//FUNÇÃO AUXILIAR
void cadastro()
{
printf ("Entre com o nome: "
fgets (nome,51,stdin);
printf ("Entre com a hora: "
scanf ("%d", &hora);
printf ("Entre com os minutos: "
scanf ("%d", &min);
}
//FUNÇÃO INCLUIR
void incluir()
{
edf *ptr;
void cadastro();
ptr = (edf*)calloc(1,sizeof(edf));
strcpy(ptr -> nome, nome);
ptr -> hora = hora;
ptr -> min = min;
ptr -> prox = NULL;
if (lista == NULL)
{
lista = ptr;
}
else
{
ptr -> prox = lista;
lista = ptr;
}
}
//FUNÇÃO LISTA VAZIA
edf* vazia(void)
{
return NULL;
}