Comment by masklinn
1 day ago
Technically strncpy was invented to interact with null-padded fixed-size strings in general. We’ve mostly (though not entirely) moved away from them but fixed-size strings used to be very common. You can see them all over old file formats still.
No comments yet
Contribute on Hacker News ↗