News for hackers. Stuff that matters.
Re:Ask HN: Preferred string copy function in C? by steve-howard on Tuesday May 01, 2012 @12:36AM (#3913003)
strdup is nice, but it always depends on your use case.

memcpy is probably best if you're keeping track of lengths separately.

There are no comments on this comment yet.