Memsetw

From Bennu Wiki
Jump to: navigation, search


Syntax

INT memsetw ( <VOID POINTER data> , <WORD value> , <INT words> )

Description

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

Also called mem_setw().

Parameters

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

Returns

INT : true

Example

See alloc().

Also useful in conjunction with map_buffer() with 16bit 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()