Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32cmn.h

memcompare()

IMPORT_C TInt memcompare(const TUint8 *aLeft, TInt aLeftLen, const TUint8 *aRight, TInt aRightLen);

Description

A Nanokernel utility function that compares two memory buffers for equality.

The two buffers are considered equal only if:

1. the buffers have the same length

and

2. the binary content of both buffers is the same.

Parameters

const TUint8 *aLeft

The start address of the first buffer in the comparison.

TInt aLeftLen

The length of the first buffer in the comparison.

const TUint8 *aRight

The start address of the second buffer in the comparison.

TInt aRightLen

The length of the second buffer in the comparison.

Return value

TInt

Zero if both buffers are equal; non-zero, otherwise.

Panic codes

USER

88 In debug mode only, if aLeftL is negative, and the function is called on the user side.

KERN-COMMON

88 In debug mode only, if aLeftL is negative, and the function is called on the kernel side.

USER

89 In debug mode only, if aRightL is negative, and the function is called on the user side.

KERN-COMMON

89 In debug mode only, if aRightL is negative, and the function is called on the kernel side.