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

memget_s function

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

See memset_s if you need a safe write operation instead.

Syntax

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

Parameters

dst

The destination where the bytes are copied to. Must be a valid address.

src

The source from where the bytes are copied from. Can be an invalid 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

memset_s

READ_AT

WRITE_AT

Clone this wiki locally