Skip to content

Recreational header-only library for simple data structure implementations in C.

License

Notifications You must be signed in to change notification settings

onlyspxctre/sptl.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sptl.h

Recreational header-only library for simple implementations of common utils and data structures not present by default in the C language.

Warning

This library is extremely experimental and should only be used for recreational purposes only!

Note

Some macros in this library uses non-standard extensions that may not be available in all C compilers. For compatibility sakes, only the GCC and Clang compilers are supported.

Features

  • Macro-implemented data structures (type safe, generic)
  • Currently implemented data structures:
    • Dynamic Array
    • Linked List
    • Hash Table
  • Logging system w/ multiple log levels
    • Prefixed with [LOG_LEVEL]
    • Info is printed to stdout, warnings & errors are printed to stderr
    • Automatically newlined
    • Verbose logs with -DSP_VERBOSE_LOGS and the SP_VERBOSE log level

References

nob.h by Tsoding, inspiration

LICENSE

This project is licensed under the MIT License.

About

Recreational header-only library for simple data structure implementations in C.

Topics

Resources

License

Stars

Watchers

Forks