Chris Wellons personal blog

strcpy: A niche function you don't need

The C strcpy function is a common sight in typical C programs. It’s also a source of buffer overflow defects, so linters and code reviewers commonly recommend alternatives such as strncpy (difficult to use correctly; mismatched semantics), strlcpy (non-standard, flawed ), or C11’s optional strcpy_s ( no correct or…
Points
150
HN comments
150
Submissions
1
Cited by
0 commenters

Software EngineeringProgramming Languages2021

On Hacker News

SubmittedTitle on HNPointsComments
Jul 30, 2021strcpy: A niche function you don't need by grep_it150150

More from Chris Wellons

All 75 posts →

Related posts from the same era