Follow me
-
Recent Posts
calendar
November 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Recent Comments
- Stan on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- Cormac on Pandas : how to compare dataframe with None
- LP on AWK: the substr command to select a substring
- jrab on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- How to disable SSL verification for urlretrieve? – Peter's blog on python: certificate verified failed
Archives
Categories
Meta
Tag Archives: malloc
Malloc and Casting
In C, the malloc function is used to allocate memory. Its prototype is: void *malloc(size_t size);void *malloc(size_t size); It returns a void pointer (void *), which indicates that it is a pointer to a region of unknown data type therefore … Continue reading
Allocation 2D arrays in C (and freeing memory)
By convention, when dealing with 2D array, the first dimension refer to the rows, and the second to the columns. To create a 2D array (double pointer) in C, you first create a 1D array of pointers (rows), and then, … Continue reading