O'Reilly logo

C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart by Brian Overland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E Common Library Functions

The C++ library is too large to be covered in a few pages. However, the most commonly used library functions fall into just a few categories: string functions, data-conversion functions, single-character functions, math functions, and (because they are used in this book) the randomization functions. This appendix provides a quick overview.

String Functions

To use these functions, include the file string.h. The functions apply to traditional C char* strings, but not to the new, automated C++ string class. The latter is described near the end of Chapter 7.

In the following Table E1, s, s1, and s2 are null-terminated char* strings (actually, each of these arguments contain the address of the string); n is an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required