format a pointer for display purposes; returns a static buffer */
| 122 | |
| 123 | /* format a pointer for display purposes; returns a static buffer */ |
| 124 | char * |
| 125 | fmt_ptr(const genericptr ptr) |
| 126 | { |
| 127 | char *buf; |
| 128 | |
| 129 | buf = ptrbuf[ptrbufidx]; |
| 130 | if (++ptrbufidx >= PTRBUFCNT) |
| 131 | ptrbufidx = 0; |
| 132 | |
| 133 | Sprintf(buf, PTR_FMT, (PTR_TYP) ptr); |
| 134 | return buf; |
| 135 | } |
| 136 | |
| 137 | #ifdef MONITOR_HEAP |
| 138 |
no outgoing calls
no test coverage detected