memcmp
- Updated2023-02-21
- 1 minute(s) read
memcmp
int memcmp (const void *buffer1, const void *buffer2, size_t numberOfBytes);
Purpose
Compares two blocks of memory. A specified number of bytes starting from the beginnings of the memory blocks are compared. The comparison is based upon the unsigned char values stored in the bytes of the buffers. The comparison is case-sensitive.
Parameters
Input | ||
Name | Type | Description |
buffer1 | const void * | Contains a pointer to the memory block that is compared to the memory block specified in buffer2. |
buffer2 | const void * | Contains a pointer to the memory block that is compared to the memory block specified in buffer1. |
numberOfBytes | size_t | Specifies the number of initial bytes that are used in the comparison. |
Return Value
Name | Type | Description | ||||||||
comparisonResult | int |
Contains the comparison result returned by the function. The following
describes the possible return values:
|
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later