Lecture overview -- Keyboard shortcut: 'u'  Previous page: Memory Allocation -- Keyboard shortcut: 'p'  Next page: C/C++ Compatibility [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 1 - Page 26 : 29
Notes about C++
From C to C++
The standard library

C comes with a relatively small standard library

  • IO is dealt with by <stdio.h>

    • printf and scanf

    • FILE and file functions

  • Standard lib <stdlib.h>

    • Conversion functions, random number functions, ...

    • malloc, calloc, free

  • String functions <string.h>

    • strlen, strcpy, ...

  • Character class test <ctype.h>

    • isalpha, isdigit, ...

  • Mathematical functions <math.h>

  • Constants for upper and lower limits - integer types <limits.h>

  • Constants for upper and lower limits - floating point types <float.h>

  • Date and time functions <time.h>

  • Variable argument lists <stdarg.h>

  • And more: <assert.h>, <ctype.h>, <errno.h>, <locale.h>, <setjmp.h>, <signal.h>, and <stddef.h>.