STC icon indicating copy to clipboard operation
STC copied to clipboard

A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.

Results 26 STC issues
Sort by recently updated
recently updated
newest added

More commonly used names in other programming languages and libraries are "free" or "destroy".

My attempt at fixing #81. This approach increases the memory usage of each pointed-to object by 1 byte (or more depending on how the compiler handles alignment). The alternative approach...

There are two ways to create an `arc`. The data and the use_count can be allocated separately (as done by `arc_X_from_ptr()`) or they can be done together (as with `arc_X_make()`)....

Hi I have updated the cstr example with an iterator sample. This is something which took me a while to understand and I hope others who struggled on this can...

Running the examples in TCC, throws this error; ``` ...> tcc -Iincludes .\pixel.c -o pixel.exe; .\pixel.exe In file included from ./pixel.c:2: In file included from includes/stc/vec.h:65: includes/stc/types.h:104: error: ';' expected...

I think https://github.com/MoserMichael/cstuff/blob/master/cutils/tree.h is good example.

Hi, I would really appreciate some more clear installation instructions for this library. But it is extremely unclear how I am supposed to get this thing working on my system....

Hi, First of all thanks for this amazing library. I mainly work on embedded side of things specially on ESP32 MCUs (Xtensa architecture). I needed to generate 64-bit random numbers...

Both Clang and Intel compilers support GNU C attributes. See: https://clang.llvm.org/docs/LanguageExtensions.html