Bill Dittman provided excellent suggestions, including macros to support using these functions in critical sections, and for optimizing realloc () further by checking to see if the previous block was ...