35 |
* These functions provide tracking of memory events and assist |
* These functions provide tracking of memory events and assist |
36 |
* finding and debugging memory errors. Memory tracking options are |
* finding and debugging memory errors. Memory tracking options are |
37 |
* selected using the macros MALLOC_DEBUG and ALLOCATED_TESTS discussed |
* selected using the macros MALLOC_DEBUG and ALLOCATED_TESTS discussed |
38 |
* below. This allows the enhanced functionality to be used or turned |
* below. This allows the enhanced functionality to be used or turned |
39 |
* off as desired. This functionality adds considerable run-time overhead, |
* off as desired. This functionality adds considerable run-time overhead, |
40 |
* and so should generally be used for debugging purposes only. There are |
* and so should generally be used for debugging purposes only. There are |
41 |
* also routines for reporting on the status of memory blocks as well as |
* also routines for reporting on the status of memory blocks as well as |
119 |
* Copies n bytes from memory address src to dest. |
* Copies n bytes from memory address src to dest. |
120 |
* This version of memcpy handles overlapping memory ranges |
* This version of memcpy handles overlapping memory ranges |
121 |
* properly. It could be more efficient internally. As it is, |
* properly. It could be more efficient internally. As it is, |
122 |
* it moves data a char at a time. Neither dest nor src may |
* it moves data a char at a time. Unless n is 0, neither dest |
123 |
* be NULL (checked by assertion). |
* nor src may be NULL (checked by asc_assertion). |
124 |
* |
* |
125 |
* @param dest Pointer to address to which to copy (non-NULL). |
* @param dest Pointer to address to which to copy (non-NULL). |
126 |
* @param src Pointer to address from which to copy (non-NULL). |
* @param src Pointer to address from which to copy (non-NULL). |