Posts by Quim Cardoso • 11 points
2 posts
-
-1
votes3
answers2790
viewsA: Read a string with line break
You can do strlen(variavel sem \n), then you copy the end of the string to the location of the \n and after that you can compare the strings.
-
1
votes2
answers346
viewsQ: save a data type in a file in c
I have this data structure: typedef struct { ListaCartao tabelaCartao[HASHSIZE]; ListaArtigos tabelaArtigos[HASHSIZE]; char localidade[MAXLOCALIZACAO]; }tCelulaSuperdume, *SuperDume; SuperDume…