Sujet : Re: is STC a good supplementary library for C?
De : richard.nospam (at) *nospam* gmail.invalid (Richard Harnden)
Groupes : comp.lang.cDate : 03. Aug 2024, 13:26:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8l7kp$3ef24$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 03/08/2024 11:44, Mark Summerfield wrote:
As part of relearning C I wanted to find a lightweight library (so not
GLib) that will provide generic collections.
I seem to have found such a library: https://github.com/stclib/STC
It does not appear to be a standard Debian package but I haven't found any
equivalent in Debian.
Is this a reasonable choice? If not, what would you recommend?
I've never hear of it, but from a very quick look I'd say: no.
They seem to be trying to write C++ code in C. If you want C++, use C++.
I want a generic (int/str/custom struct) set, map, ordered map, vector.
I think this is better (I've never used it, but Jacob does know what he's doing):
https://github.com/jacob-navia/cclReally though, roll your own. It'll be a good exercise for relearning C.