| 175 | } |
| 176 | |
| 177 | static void Pad( char * str, u32 length ) |
| 178 | { |
| 179 | u32 actLen = strlen( str ); |
| 180 | |
| 181 | if (actLen > length) |
| 182 | { |
| 183 | str[length] = '\0'; |
| 184 | str[length - 1 ] = '.'; |
| 185 | str[length - 2 ] = '.'; |
| 186 | str[length - 3 ] = '.'; |
| 187 | } |
| 188 | else |
| 189 | { |
| 190 | char * end( str + actLen); |
| 191 | |
| 192 | while( u32(end - str) < length ) |
| 193 | { |
| 194 | *end++ = ' '; |
| 195 | } |
| 196 | *end = '\0'; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | struct SortByCallstack |
| 201 | { |