Re:Printable True Bugs Wait Posters
by dllthomas on Friday January 31, 2014 @11:18AM
(#7157380)
If you're able, don't treat text as zero-terminated char arrays. Ideally, you'd have a well fleshed-out library for encoding-aware ropes.
[ Parent
| on HN ]
Which libraries do you recommend?
Unfortunately, I don't know of one. My recent C work has worked with text only in a very limited capacity (parsing and building packets in an ascii format - for the later, vectorized write buffers are a poor-man's ropes).
Edited to add:
Apparently there is this: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/cordh...
I recommend bstring for length-prefixed strings in C: