2 ms·
A beautiful thing. If my C program is working with strings in any capacity larger than some copying around, this is what I use. No reason to muck around with st
by megous 3y ago
A beautiful thing. If my C program is working with strings in any capacity larger than some copying around, this is what I use. No reason to muck around with strsep, strpbrk, etc. when you can use re2c and a few gotos to implement pretty much any matching pattern safely. Especially useful for dealing with text protocols. Making hand-written recursive descent parsers is also a breeze with this as a building block.