Skip to content
nyfrk edited this page Aug 22, 2020 · 1 revision

memset_s function

Copy a block of memory while performing a safe write. This function will not trip an exception if no memory is committed at the destination address.

See memget_s if you need a safe read operation instead.

Syntax

void* memset_s(
	void* dst, 
	const void* src, 
	size_t len
);

Parameters

dst

The destination where the bytes are copied to. Can be an invalid address.

src

The source from where the bytes are copied from. Must be a valid address.

len

The amount of bytes to copy.

Return value

This function will return NULL if it could not copy all requested bytes. Otherwise it will be non-zero.

Remarks

none

Requirements

Minimum API Level 1
Target Edition Any
Header S4ModApi.h
Library settlers4api.lib
DLL settlers4api.dll

See also

memget_s

READ_AT

WRITE_AT

Clone this wiki locally