Re:Linux Eliminates the Strncpy API After Six Years of Work,...
by jkfkfkj on Saturday June 20, 2026 @06:33PM
(#48613612)
It can perhaps be due to the string originating from a sql database ”char” field, I.e. not ”varchar”. Char fields in databases are space padded.
Re:Linux Eliminates the Strncpy API After Six Years of Work,...
by bebe83939 on Saturday June 20, 2026 @06:06PM
(#48613429)
Perhaps prevent realocation when string size changes? Or aligning cpu cache lines?
I’m not sure why this was - the source base was so old it might have had its origins in Pascal struct behaviour.