Memseti

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


Syntax

INT memseti ( <VOID POINTER data> , <INT value> , <INT ints> )

Description

Sets all ints in the specified memory block to the specified value.

Also called mem_seti().

Parameters

VOID POINTER data - Pointer to the block of ints in memory.
INT value - Value to set all ints to.
INT ints - Number of ints to change the value of.

Returns

INT : true

Example

See alloc().

Also useful in conjunction with map_buffer() with 32bit maps. (Example needed.)


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()