1al_fixceil(3)                                                    al_fixceil(3)
2
3
4

NAME

6       al_fixceil - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              int al_fixceil(al_fixed x);
12

DESCRIPTION

14       Returns  the  smallest integer not less than x.  That is, it rounds to‐
15       wards positive infinity.
16
17       Example:
18
19              int result;
20
21              /* This will put 34 into `result'. */
22              result = al_fixceil(al_itofix(100) / 3);
23
24              /* This will round up to 17. */
25              result = al_fixceil(al_itofix(100) / 6);
26

SEE ALSO

28       al_fixtoi(3), al_fixfloor(3).
29
30
31
32Allegro reference manual                                         al_fixceil(3)
Impressum