-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lw/safer string functions #841
base: main
Are you sure you want to change the base?
Lw/safer string functions #841
Conversation
2bc2b38
to
9b53e31
Compare
13e8a3d
to
f9ae166
Compare
11a2254
to
89c061d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some quick, initial feedback. Will do a more thorough review once I can spare some time.
b4304de
to
8e0b0f7
Compare
|
The function searches for the terminating `NULL` character in the given string up to a given maximun length.
The function checks for source and destination lengths provided.
8e0b0f7
to
b3dc648
Compare
|
Provide safer variants of
strnlen
andstrncpy
which check the provided bounds of the char arrays.