Skip to content
Snippets Groups Projects
Commit abcc1038 authored by Pedro Martins e Sá's avatar Pedro Martins e Sá :metal_tone4:
Browse files

Replace teste.c

parent ddd1503a
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,43 @@
int main () {
/*faça o seu teste fdp kkkkkkkkkkk*/
void *a,*b,*c,*d,*e;
a = alocaMem(100);
print_mapa();
printf("\n");
b = alocaMem(500);
print_mapa();
printf("\n");
c = alocaMem(200);
print_mapa();
printf("\n");
d = alocaMem(1000);
print_mapa();
printf("\n");
liberaMem(a);
print_mapa();
printf("\n");
e = alocaMem(1000);
print_mapa();
printf("\n");
liberaMem(d);
print_mapa();
printf("\n");
liberaMem(e);
print_mapa();
printf("\n");
e = alocaMem(20);
print_mapa();
liberaMem(b);
printf("\n");
print_mapa();
liberaMem(c);
printf("\n");
print_mapa();
liberaMem(e);
printf("\n");
print_mapa();
return (0);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment