I want to check if there is any content in struct
so I wanted to initialize the variables as NULL
, because if they were equal to NULL
would know that they were not created.
excerpts:
Struct:
struct Fila
{
int capacidade;
float *dados;
int primeiro;
int ultimo;
int nItens;
};
startup:
struct Fila
PPFila = (Fila)NULL, <--- Erro de incompatibilidade
AUTFila = (Fila)NULL; <--- Erro de incompatibilidade
Creation:
if(PPFila == (Fila)NULL)
{
//
// Cria as filas que gerencias as o envio das threads
//
criarFila(&PPFila, 20);
}
Does anyone have any tips how I can do this?