/ Program for SubSet initialization of memory pools. */ Here there should be some verification done such as validity of */ the address and size not larger than memory size. */ /
| 535 | /* the address and size not larger than memory size. */ |
| 536 | /***********************************************************************/ |
| 537 | BOOL PlugSubSet(void *memp, size_t size) |
| 538 | { |
| 539 | PPOOLHEADER pph = (PPOOLHEADER)memp; |
| 540 | |
| 541 | pph->To_Free = (size_t)sizeof(POOLHEADER); |
| 542 | pph->FreeBlk = size - pph->To_Free; |
| 543 | return FALSE; |
| 544 | } /* end of PlugSubSet */ |
| 545 | |
| 546 | /***********************************************************************/ |
| 547 | /* Use it to export a function that do throwing. */ |
no outgoing calls
no test coverage detected