cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
strcat()
strcat()
Sep 11, 2011 at 10:31pm UTC
pcaraglio
(4)
I am writing a c++ program that involves a bit of cstrings, and I was wondering if there is any way to check to see if strcat fails?
Sep 11, 2011 at 10:34pm UTC
Zhuge
(4664)
You can't really. That's one of the drawbacks of dealing with
char
*
s instead of
std::string
s.
Sep 11, 2011 at 11:03pm UTC
Duthomhas
(13282)
What do you mean by "fails"? The
strcat
() function always succeeds. You may call it incorrectly (that is, you may provide bad data to it), but that is not a failure of the function itself.
Topic archived. No new replies allowed.