Memory free

From Bennu Wiki
(Redirected from Mem available)
Jump to: navigation, search


Syntax

INT memory_free ( )

Description

Returns the free memory total in bytes.

Also called mem_available().

Returns

INT : Free memory total in bytes.

Example

import "mod_mem"
import "mod_say"

Process Main()
Begin

    say("Total memory: " + memory_total());
    say("Free memory:  " + memory_free() );

End

Used in example: say(), memory_total(), memory_free()


Mod_mem
Functions Alloc()Calloc()Free()Memalloc()Memavailable()Memcalloc()Memcmp()Memcopy()Memfree()Memmove()Memrealloc()Memset()Memseti()Memsetw()Memtotal()Memcmp()Memcopy()Memmove()Memoryfree()Memorytotal()Memset()Memseti()Memsetw()Realloc()