Vely logo Empower C
install  tutorials  examples
documentation  license  about

12.1.0 released on Sep 19, 2022

new-mem



PURPOSE:


Allocate memory.

SYNTAX:


new-mem [ define ] <memory> size <size>


DESCRIPTION:


new-mem allocates memory pointed to by <memory> of <size> bytes. If memory cannot be allocated, your application will error out.

If "define" is used, variable <memory> is created if it does not exist.

The pointer returned is void* and can be used for any purpose.

EXAMPLES:


Allocate memory of 300 bytes:
new-mem define mystr size 300


SEE ALSO:


Memory ( delete-mem   memory_handling   new-mem   resize-mem  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Icons copyright PaweĊ‚ Kuna licensed under MIT. This web page is licensed under CC-BY-SA-4.0.