Skip to content

Commit a6c63e9

Browse files
committed
commit
1 parent 6b950cf commit a6c63e9

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

P03/ex11

0 Bytes
Binary file not shown.

P03/ex11.c Pt/ex11.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ int main(){
1818
char str[]={};
1919
FILE *f=fopen("arquivo.txt", "r");
2020

21-
while (1)
22-
{printf("merda\n");
21+
while (1){
22+
printf("merda\n");
2323
if (!fgets(str, 80, f))
2424
{
2525
break;
2626
}
2727
str[strlen(str)-1]='\0';
2828
printf("merda2\n");
29+
2930
if(!lista_insere(l, str, NULL)){
3031
printf("Erro a inserir na lista!\n");
3132
return -1;
@@ -34,7 +35,7 @@ int main(){
3435
}
3536
printf("Foram carregados %d jogos\n", l->tamanho);
3637
lista_imprime(l);
37-
38+
printf("\n");
3839

3940

4041
fclose(f);

P03/lista1.c Pt/lista1.c

File renamed without changes.

P03/lista1.h Pt/lista1.h

File renamed without changes.

P03/lista1.o Pt/lista1.o

File renamed without changes.

0 commit comments

Comments
 (0)