/ This routine makes a pointer from an offset to a memory pointer. */ /
| 619 | /* This routine makes a pointer from an offset to a memory pointer. */ |
| 620 | /*************************************************************************/ |
| 621 | void* MakePtr(void* memp, size_t offset) |
| 622 | { |
| 623 | // return ((offset == 0) ? NULL : &((char*)memp)[offset]); |
| 624 | return (!offset) ? NULL : (char *)memp + offset; |
| 625 | } /* end of MakePtr */ |
| 626 | |
| 627 | /*************************************************************************/ |
| 628 | /* This routine makes an offset from a pointer new format. */ |
no outgoing calls
no test coverage detected