4 ms·
add a strdup() That is still far fewer layers of gunk, not even counting whatever may underlie the non-C strings.
by tropo 8y ago
add a strdup()
That is still far fewer layers of gunk, not even counting whatever may underlie the non-C strings.
- db48x 8y agoSurely you mean strndup, since you're keeping careful track of the correct length of your strings to prevent buffer overflows.