My situation is the following: I\'ve implemented a simple RPC system in C through which a client can call a remote function to which it passes a command. The command is executed on the remote machine
I have a simple program which reads a bunch of ini file settings in memory allocated dynamically (malloc), then does stuff in loops for a long time, then ends.When I run valgrind I see that the memory
I\'m trying to test absolute paths on a l开发者_StackOverflow中文版inux machine to find where a program is located so I can run it with my specific arguments. The problem is, when I find it, I keep ad
The code works as it is supposed to, though it never frees the memory allocated by malloc(). I have tried to free memory in any place that I can, but no matter where I do it, it breaks the program. S
I made a function for an object called copy() that should just return an instance of the object with all the same values -
Following on from a previous question I had here : Copying a string from a pointer to a string I\'m now trying to add the copied string into a dynamic array, which will gradually increase in size de
I have a question about assign here, I want to know whether Assign makes a copy of the whole object and
I have a very simple C code for constructing a Singly Linked list as below, in which开发者_Python百科 I allocate memory for each node dynamically using malloc. At the end of code, I want to free the m
I am writing a C-program where I need 2D-arrays (dynamically allocated) with negative indices or where the index does not start at zero. So for an array[i][j] the row-index i should take values from e
I have a problem with free() function in C linux. here is my sample code: typedef struct { char index[2];