RtfwFreeDeviceMemory

RtfwFreeDeviceMemory frees the memory associated with the array of RTFW_DEVICEEX structures pointed to by parameter pwRTOSDevices.

Syntax

Copy
void RtfwFreeDeviceMemory(
    [in]    void * const pwRTOSDevices,
    [in]    size_t countDevices
);

Parameters

[in] pwRTOSDevices

Points to the first array element returned previously by RtfwGetwRTOSDevices. If this value is NULL, the function fails and sets the last error value to ERROR_INVALID_PARAMETER.

This parameter MUST be identical to the value returned by RtfwGetwRTOSDevices, otherwise undefined behavior will result.

[in] countDevices

This parameter MUST be identical to the count of devices returned by RtfwGetwRTOSDevices, otherwise undefined behavior will result.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE, sets the last error value, and leaves the array pointed to by pwRTOSDevices with invalid data. Call GetLastError to obtain an error code.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtfwApi.h

RtfwApi.lib

See Also: