Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dstr

An stb-style(single-file, header-only) dynamic string library in c.

Warning

This library was created for my own learning purpose. This library is WIP and untested in production. If you choose to use it, do it at your own risk.

Usage

  • Copy dstr.h into your project.
  • Include the library like this:
#define DSTR_IMPLEMENTATION
#include "dstr.h"
  • Note: define DSTR_IMPLEMENTATION only once in your project. For more information, see stb_howto.txt
  • This library uses realloc and free of stdlib to allocate and free memory. If you want to use your own custom allocator and free, you can do that by defining DSTR_ALLOC and DSTR_FREE. Note that you must define both or neither.

License

MIT License

About

stb-style(single-file, header-only) dynamic string library in c

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages