memset

Description:

The function memset is used to write a given character to a block of contingous memory. The block size may vary from 1 block to the maximum number supported on the target machine, which would be for example 65535 blocks on the Commodore 64 with it's 16-Bit address-bus.

Function Prototype:

void memset (void * object, MEMVAR size, BYTE value)

Parameters:

object

A pointer to the first block of memory to be filled with characters.

size

Specifies the size of the block in bytes to be filled with characters.

value

The character the memory block is to be filled with.

Return Values:

(This function does not have a return value in the current kernel release.)


See also malloc, remalloc, free, getfreemem, getreservedmem, getusedmem, getlasterror