C Strings Library

前端 未结 4 1328
情话喂你
情话喂你 2021-01-02 17:21

Is there a C strings library for C (not C++) that implements an abstraction over char * and wchar_t * strings?

The requirements are:

<
4条回答
  •  -上瘾入骨i
    2021-01-02 17:56

    Glib can do most of that, but is LGPL: http://library.gnome.org/devel/glib/stable/

    I don't think you can find refcounting in any string library in C though... It's just not that easy to do. You can make a thin wrapper around gchar* yourself if you need it.

提交回复
热议问题