Skip to content

timothy-e/allocating-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allocating-Memory

Run test-pool.c This testing client only allows for 26 different allocations (one per lower case letter), although the actual implementation is only limited by memory availability.

Usage

LET is a lowercase letter from a..z to identify each allocation

  • create INT: create the pool of size INT
  • destroy: destroy the current pool
  • alloc LET INT: allocate memory to LET of size INT
  • free LET: free memory associated with LET
  • realloc LET INT: reallocate memory associated with LET to size INT
  • active: print active
  • available: print available
  • exit: quit

About

The user can "allocate" and "reallocate" memory from an initial pool of allocated memory. Used to explore how malloc and realloc work in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages