C-style string definition and manipulation library

Updated: 22nd January 2012


cstring 3.6.2

Version 3.6.2 of cstring is available for download now.


cstring is a small and simple C library for the definition and manipulation of expandable C-style strings. Strings are represented as instances of the cstring_t structure, and manipulated by the library's functions. Facilities include:

  • Selection of different allocator pools (including Global, COM Task and process heap allocators on Win32)
  • Mapping cstring_t instances as views onto existing memory areas
  • Efficient work-ahead memory optimisation
  • Minimal link requirements: only requires KERNEL32 and C standard library on Win32

It is released under the BSD license, which basically means its free for any use, but you can't claim it's yours.


The documentation is available online and also as a compiled HTML help module included in the distribution.