Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

structures and methods in C that are efficient in memory management.

License

Notifications You must be signed in to change notification settings

ctronp/EfficientDataStructures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Efficient Data Structures

This repository includes simple and easy to use data structures, the objective of these is to reduce the number of system calls to request memory, similar to how C++ containers are made.

All structures are contained in the form of macros as single headers.

Usage

Copy the header to the project in which it will be used. include previously assigning the macro with the name of the structure to use.

Example:

#define T int
#include "include/generic_fifo.h"
#undef T

int main() {
  fifo_int *fifo = new_fifo_int();
  del_fifo_int(fifo);
  free(fifo);
  return 0;
}

After including the header, the functions and structures will be created, these with named in snake_case.

Unnecessary files

All files in the root folder are only used to test the correct functioning of the data structures, they are not required in any way for the use of these, and due to the license (MIT) you are allowed to delete and/or modify all files in this repository.

About

structures and methods in C that are efficient in memory management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published