Skip to content
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

non-standard library functions included in chapter 10 #7

Open
PatrickTague opened this issue Jun 21, 2023 · 0 comments
Open

non-standard library functions included in chapter 10 #7

PatrickTague opened this issue Jun 21, 2023 · 0 comments

Comments

@PatrickTague
Copy link

i would recommend removing strlcpy and strlcat from the list and re-introducing strncpy and strncat. the reason is that the former are not always included in the strings.h library but rather are part of a rather old bsd strings library that is no longer supported in most systems (e.g., it is absent in ubuntu 23.04). strncpy is rather easy to use and has nearly the same format as you have listed for strlcpy, other than the return type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant