Search:
Forum
General C++ Programming
Doubt with usage of string::substr() fun
Doubt with usage of string::substr() function
Jun 15, 2013 at 5:22am UTC
nishal
(5)
If the length of the string is less than the length of the substring requested, what will happen to the substring?
Jun 15, 2013 at 5:59am UTC
Disch
(13742)
You'll get up to the end of the string.
Jun 15, 2013 at 6:02am UTC
Fransje
(435)
See this page:
http://www.cplusplus.com/reference/string/string/substr/
if the string is shorter, as many characters as possible are used
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs