Lecture 1 - Slide 31 : 34
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>
.
Most standard libraries C
some_lib.h
can be used in C++ under the name
c
some_lib
The C++ Prog. Lang. (4. edition)
: Page 863