cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
strncat null termination
strncat null termination
Sep 3, 2010 at 3:20pm UTC
unregistered
(199)
according to
http://www.cppreference.com/wiki/c/string/strncat
it says
char *strncat( char *str1, const char *str2, size_t count );
The function strncat() concatenates at most count characters of str2 onto str1, adding a null termination.
Does count include or exclude the null termination that is added at the end?
Sep 3, 2010 at 3:24pm UTC
Galik
(2254)
Exclude.
http://www.cplusplus.com/reference/clibrary/cstring/strncat/
Topic archived. No new replies allowed.