Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
  • Sign in
joeylib
joeylib
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Milestones
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Public Skunkworks
  • joeylibjoeylib
  • Wiki
  • JoeyLib Memory Functions

JoeyLib Memory Functions

Last edited by Scott Duensing Oct 17, 2019
Page history

JoeyLib offers replacements for several common memory management functions. It is recommended you use the JoeyLib versions while developing your application to assist you with tracking down leaks and excessive memory usage.

jlFree

void jlFree(void *p);

Frees a block of memory pointed to by p.

jlMalloc

void *jlMalloc(size_t *bytes);

Allocates bytes of memory and returns a pointer to the new block. Unlike traditional malloc, the new block will be zeroed.

jlRealloc

void *jlRealloc(void *p, size_t *bytes);

Changes the size of an existing allocation p to bytes of memory and returns a pointer to the new block.

Clone repository
  • Installation
  • JoeyLib API
  • JoeyLib Concepts
  • JoeyLib Data Types
  • JoeyLib Definitions
  • JoeyLib Display Functions
  • JoeyLib Drawing Functions
  • JoeyLib Enumerations
  • JoeyLib Formats
  • JoeyLib Gamepad Functions
  • JoeyLib Keyboard Functions
  • JoeyLib Memory Functions
  • JoeyLib Palette Functions
  • JoeyLib Sound Functions
  • JoeyLib Static Image Functions
View All Pages