Posts by thiagofleal • 51 points
4 posts
-
0
votes1
answer94
viewsA: Double linked list in C
The problem is that the function insereNoFim takes the parameter lista as a value and not as a reference (even if the type apontador is a pointer). You could receive the parameter lista as a pointer…
-
1
votes3
answers80
viewsA: Do I need to re-allocate a structure in case I clean up just a part of it?
In C, when there is a pointer, this points to the first byte of the memory related to that variable. When there is a static vector, the name of the vector without the brackets with an index is also…
-
1
votes1
answer47
viewsA: Build error when recording information in a struct and substruct
In the stretch cate[i].sub.nome_subcateg = malloc(tam * sizeof(char)); the element .sub is treated as a variable, but the compiler recognizes a pointer. struct categoria_st{ char * nome_categ; int…
-
0
votes1
answer90
viewsQ: Problem with function call in DLL (C)
I’m having trouble executing a code that uses a function of a DLL, which has a pointer as argument, according to the prototype: DLLIMPORT void add_std_func(object list) Follow the macro definitions…
casked thiagofleal 51