F. Standard Library Functions
The most commonly used library functions fall into a few categories: string functions, data-conversion functions, single character functions, math functions, time functions, and randomization functions. This appendix provides an overview. Note that I do not cover I/O functions such as printf or fprintf, because I assume you are using C++ stream classes.
For more information on the stream objects cin, cout, and the stream classes, see Appendix G.
String (C-String) Functions
To use these functions, include the file <cstring>. The functions apply to traditional C char* strings, not to the STL string class.
In Table F.1, s, s1, and s2 are null-terminated char* strings; or rather, each of these equates to the address ...
Get C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.