1al_get_ram_size(3)                                          al_get_ram_size(3)
2
3
4

NAME

6       al_get_ram_size - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              int al_get_ram_size(void)
12

DESCRIPTION

14       Returns  the  size  in  MB  of the random access memory that the system
15       Allegro is running on has and which could be detected,  or  a  negative
16       number  if detection failed.  Even if a positive number is returned, it
17       might be that it is not correct.  For example,  Allegro  running  on  a
18       virtual  machine  will return the amount of RAM of the VM, and not that
19       of the underlying system.
20
21       Furthermore even if the number is correct, this only gives you informa‐
22       tion  about  the  total  physical memory of the system Allegro runs on.
23       The memory available to your program may be less or more than what this
24       function returns due to circumstances such as virtual memory, and other
25       programs that are currently running.
26
27       Therefore, it's best to use this for advisory  purposes  only.   It  is
28       certainly  a  bad  idea  to  make your program exclusive to systems for
29       which this function returns a certain "desirable" number.
30
31       This  function  may  be  called  prior   to   al_install_system(3)   or
32       al_init(3).
33

SINCE

35       5.1.12
36
37
38
39Allegro reference manual                                    al_get_ram_size(3)
Impressum