User Tools

Site Tools


using_malloc_and_free

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
using_malloc_and_free [2019/11/19 07:37]
hutch
using_malloc_and_free [2019/11/19 07:37] (current)
hutch
Line 19: Line 19:
 The array of pointers will be stored at ''​wamDisplay_moleInfo''​ (see above). To illustrate how this is done, here is a simple example that performs tasks similar to those that you will need to perform. You can compile this program if you like. Also, though the steps that assign and print-out the values of the structs is not described here it is provided so you can see how to access the variables in the struct. The array of pointers will be stored at ''​wamDisplay_moleInfo''​ (see above). To illustrate how this is done, here is a simple example that performs tasks similar to those that you will need to perform. You can compile this program if you like. Also, though the steps that assign and print-out the values of the structs is not described here it is provided so you can see how to access the variables in the struct.
  
-<​code>​+<​code ​C>
 #include <​stdint.h>​ #include <​stdint.h>​
 #include <​stdlib.h>​ #include <​stdlib.h>​
using_malloc_and_free.txt ยท Last modified: 2019/11/19 07:37 by hutch