This commit is contained in:
Miloslav Ciz 2022-05-24 21:36:52 +02:00
parent 7ee2caf079
commit f90dcf6389
4 changed files with 11 additions and 5 deletions

View file

@ -359,7 +359,7 @@ Functions are similar to but **NOT the same as mathematical functions**. Mathema
Besides writing programs that can be directly executed programmers write **[libraries](library.md)** -- collections of functions that can be used in other projects. We have already seen libraries such as *stdio*, *standard input/output library*, a standard (official, bundled with every C compiler) library for input/output (reading and printing values); *stdio* contains functions such as `puts` which is used to printing out text strings. Examples of other libraries are the standard *math* library containing function for e.g. computing [sine](sine.md), or [SDL](sdl.md), a 3rd party multimedia library for such things as drawing to screen, playing sounds and handling keyboard and mouse input.
Let's see a simple example of a function that writes out a temperature in degrees of Celsius and well as in Kelvin:
Let's see a simple example of a function that writes out a temperature in degrees of Celsius as well as in Kelvin:
```
#include <stdio.h>