MacTrove  — Classic Macintosh Archive
 
 Home Software Hardware Docs Magazines Forums Search
Search:   Software, forums, magazines & more

Mallocfree 101 C

File mallocfree-101-c.hqx
Size 9.3 KB
Category Development
↓ Download mallocfree-101-c.hqx

Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute corrections, and join the community chat.

About

mallocfree is meant to be used by programmers instead of the usual ANSI memory manager. It includes malloc, free, realloc, calloc, and as additional goodies getallocsize (works like _GetPtrSize/_GetHandleSize on a mallocated block; the ANSI libraries miss this routine) and ffcalloc (you pass a single parameter instead of the two parameters you are forced to give to the standard calloc; this lets you avoid a multiplication at runtime). C source code is included. mallocfree can be used with any Mac under any System. New since 1.0: Fixed the incredible bug that prevented the memory manager to work with the application's own heap (as opposed to temporary memory).

MacTrove — Classic Macintosh Archive — Full site | Software | Search
Classic version — compatible with older browsers.