Character arrays (<string> Data Type)

If you declare a character array as char vbl[n], TotalView automatically changes the type to <string>[n]; that is, a null-terminated, quoted string with a maximum length of n. Thus, by default, the array is displayed as a quoted string of n characters, terminated by a null character. Similarly, TotalView changes char* declarations to <string>* (a pointer to a null-terminated string).

Since most C character arrays represent strings, the <string> type can be very convenient. If, however, you intended the char data type to be a pointer to a single character or an array of characters, you can edit the <string> back to a char (or char[n]) to display the variable as you declared it.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0