Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


A simple C string lib

Subscribe to updates I use cstring

Statistics on cstring

Number of watchers on Github 274
Number of open issues 0
Average time to close an issue about 10 hours
Main language C
Open pull requests 0+
Closed pull requests 0+
Last commit over 3 years ago
Repo Created almost 7 years ago
Repo Last Updated over 2 years ago
Size 9 KB
Organization / Authorcloudwu
Page Updated
Do you use cstring? Leave a review!
View cstring activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating cstring for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


C string string cstring string

  • 32 string interning string symbol O(1)
  • 128 stack
  • string interning
  • 64K
  • hash hashmap


cstring_buffer CSTRING_BUFFER(var) var cstring_buffer

cstring_buffer CSTRING_CLOSE(var)

cstring_buffer api

cstring cstring_cat(cstring_buffer sb, const char * str);
cstring cstring_printf(cstring_buffer sb, const char * format, ...);


cstring cstring_buffer CSTRING(var) var cstring_buffer cstring

cstring_buffer cstring cstring_buffer CSTRING

cstring cstring cstring API :

cstring cstring_grab(cstring s);
void cstring_release(cstring s);

cstring const char * s->cstr

cstring hash const char * API :

int cstring_equal(cstring a, cstring b);
uint32_t cstring_hash(cstring s);


CSTRING_LITERAL(var, literal) cstring literal "

cstring questions on Stackoverflow (View All Questions)
  • How to convert CString and ::std::string ::std::wstring to each other?
  • Convert CString to character array?
  • CString extract file path
  • CString IsEmpty keeps returning true
  • Problem: How to convert CString into const char * in C++ MFC
  • Cstring message contains the same character \n and it does not extract newline
  • Using std::unordered_map with MFC CString
  • Convert MFC CString to integer
  • Using c.str to convert from string to cstring
  • Different behaviour between CString operators "+=" and "+"
  • How to convert std:string to CString in unicode project
  • how to convert or cast CString to LPWSTR?
  • Product of char values in a cstring?
  • Convert CString usable in Format in C# string
  • CString format return weird character
  • How to split CString into characters?
  • Trying to convert old Swift code - Cstring issue
  • I can't convert cstring to int
  • How to convert cstring (words) to encoding hex
  • How to convert CString to integer and float?
  • Best way to find a whitespace-delimited word in a CString
  • C++ (2012 Express) CString Issues
  • CString::find... iterative use issue?
  • Why CString MakeUpper inconsistent performance in DEBUG and Release?
  • convert MFC's CString to int for both ASCII and UNICODE
  • MFC CString Format gives weird behaviour
  • C++ multiline CString literal in VS2013 Unicode
  • Unable to Add More than One Cstring to an array of Cstrings
  • How can I check if a MFC CString is null?
  • Searching for a word in cstring text (1-D array/c++)
cstring list of languages used
Other projects in C