Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Daniel Lemire's blog
(Uncensored)
subscribe
Splitting a long string in lines efficiently
https://lemire.me/blog/2025/09/07/splitting-a-long-string-in-lines-efficiently/
links
backlinks
Tagged with:
performance
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.