gcc 4.5.1 c89 I have written this source code for my better understanding of malloc and calloc. I understand, but just have a few questions.
This question already has answers here: Closed 12 years ago. Possible Duplicate: malloc and delete in C++, opinions
I\'m not sure exactly what I need to use as an argument to malloc to allocate space in the table_allocate(int) function. I was thinking just count_table* cTable = malloc(sizeof(count_table*)), but tha
I am writing a C app and I use malloc to create data on the heap.Now while the application is active, this data is always persistant, so I never \"free\" the Malloc data.
Ubuntu 10.10 gcc 4.4.4 I am just experimenting with allocating and freeing. However, I am trying to avoid the problem when a object is freed more than once.
I\'ve always programmed in Java, which is probably why I\'m so confused about this: In Java I declare a pointer:
Really don\'t know what to make of this--my program keeps crashing when I am allocating memory for a string, most often in this innocuous bit of code, which in other contexts has never caused a proble
i am holding data in a buffer, struct buf *bufPtr = malloc((sizeof(struct buf))*(MAX_FILE_SIZE)); i then want to write the buffer to a file of size (sizeof(struct buf))*(MAX_FILE_SIZE)
I\'m very new to C so I\'m sure I am doing loads wrong however this is puzzling me. My code should get a title from the user and create a folder in the route directory with that name. It only works i
I\'m developping on iOS 4 and I\'ve got this method in my appDelegate. It is called from a couple of tableviews datasource delegates. Instruments gave me these (on device and simulator)