realloc
Should it use realloc?
After looking at some open source projects C code I\'m not sure if I\'m doing stuff right. When I\'m creating strings (char *), I\'ve normally done this:[详细]
2023-04-11 12:16 分类:问答Using realloc in recursion
Can I do this in C? Valgrind complains that realloc produces an invalid free? int main(){ void* mem; // Do stuff[详细]
2023-04-05 20:52 分类:问答Does realloc just expand the memory or might that lead to memory problems?
I have the following code: #include <stdio.h> #include <stdlib.h> #define OUT void getDataFromServer(OUT int** array, OUT int* size)[详细]
2023-04-05 19:25 分类:问答weird memory error in C
I\'m writing a program in C that checks for circular symbolic links. The strategy is to create a struct fileInfo:[详细]
2023-04-04 06:40 分类:问答Structures with dynamic memory allocation in C
I need to write data into a structure where the length of the data depends on the command I want to send to a device. For that I have defined the following structure:[详细]
2023-04-03 15:43 分类:问答OpenGL ES 2.0 on iPhone: Unable to Exceed Small Index/Vertex Count
I\'ll try to keep it brief: I\'m using OpenGL ES 2.0 on iPhone, and am utilising a Vertex Buffer Object to render many shapes on-screen at once.[详细]
2023-04-01 12:31 分类:问答Is realloc() safe in embedded system?
开发者_开发百科While developing a piece of software for embedded system I used realloc() function many times. Now I\'ve been said that I \"should not use realloc() in embedded\" without any explanatio[详细]
2023-03-30 21:13 分类:问答realloc array inside a function
i try to reallocate array inside a function. unsigned findShlasa(int matrix[COL_MATRIX_A][ROW_MATRIX_A], Sa *ar, list head)[详细]
2023-03-29 20:35 分类:问答useing realloc() many times
which one of the following is preferable file=fopen(argv[1],\"r开发者_C百科\"); arr=(unsigned int *)malloc(4);[详细]
2023-03-29 13:19 分类:问答realloc a struct, c
I have the next struct struct Board { int width; int height; char **board; } And I would like to expand the **board, meaning I need more memory and thus the call to[详细]
2023-03-28 23:30 分类:问答