TotalView User Guide : Part V: Debugging : Examining and Changing Data : Changing a Variable’s Data Type : Type-Casting Examples : Displaying Allocated Arrays

Displaying Allocated Arrays
The C Language uses pointers for dynamically allocated arrays; for example:
int *p = malloc(sizeof(int) * 20);
Since TotalView doesn’t know that p actually points to an array of integers, you need to do several things to display the array:
1
Dive on the variable p of type int*.
2
3

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com