Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CarregarParqueToHistorico(ptGES gestor)
- {
- if (!gestor || !gestor->Parque)//brb
- return;
- NOLUG *L;
- NOAFE *A;
- gestor->Historico = fopen("Historico.csv", "a");
- for(int i=0;i<MAX_FILAS_PARQUE; i++)
- {
- L=gestor->Parque->hash[i];
- while(L)
- {
- if(L->info->sit != 0)
- {
- A = gestor->Afetacao->ult;
- while (A)
- {
- if (A->info->id_cam = C->info->id)
- break;
- A = A->ant;
- }
- fprintf(gestor->Historico, "%s;%s;%d;%s;%d;%d\n", __FUNCTION__, __DATE__, L->info->id_cam, L->info->cod, L->info->sit, SearchMot(gestor, A->info->id));
- }
- L=L->seg;
- }
- }
- fclose(gestor->Historico);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement