Zack's Kernel News
Zack's Kernel News
Chronicler Zack Brown reports on string handling routines and speeding up database workloads.
String Handling Routines
In the midst of a discussion on patch handling in the kernel development process, it came up that apparently a lot of patches are scripted constructs that are hard to synchronize between the various maintainers. So, someone asked for an example of such a patch, and someone else offered a recent set of changes from Julia Lawall for the stracpy() code.
A wrapper around strscpy(), stracpy() is a replacement for strncpy(), which is a function for copying strings. It was at this point that Linus Torvalds, essentially off-topic, weighed in on the string handling issue:
"I'm not actually convinced about stracpy() and friends.
[...]
Buy this article as PDF
(incl. VAT)
