Easton Man's Channel
03:45 · Sep 8, 2025 · Mon
Daniel Lemire's blog
Splitting a long string in lines efficiently
source
Daniel Lemire's blog
Splitting a long string in lines efficiently
Suppose that you have a long string and you want to insert line breaks every 72 characters. You might need to do this if you need to write a public cryptographic key to a text file. A simple C function ought to suffice. I use the letter K to indicate the…
Home
Powered by
BroadcastChannel
&
Sepia