assigning values to a dynamically allocated array of structures

This is a discussion on assigning values to a dynamically allocated array of structures within the C Programming forums, part of the General Programming Boards category; Hi,
I am trying to dynamically create an array of structures of type page. The page struct looks like this:
...

assigning values to a dynamically allocated array of structures

Then in a function called set_trace, I am using malloc to dynamically create the array. I believe thus far my code is correct, but the next thing I'm trying to do is enter values into this array of structs. This is what my set_trace function looks like.