Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
16 * <<memcmp>>---compare two memory areas
21 * int memcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
24 * int memcmp(<[s1]>, <[s2]>, <[n]>)
28 * This function compares not more than <[n]> characters of the
29 * object pointed to by <[s1]> with the object pointed to by <[s2]>.
31 * The function returns an integer greater than, equal to or
32 * less than zero according to whether the object pointed to by
33 * <[s1]> is greater than, equal to or less than the object
34 * pointed to by <[s2]>.
36 * <<memcmp>> is ANSI C.
37 * <<memcmp>> requires no supporting OS subroutines.
49 Compares the fisrt num bytes of two memory blocks pointed by m1 and m1.
50 @return a value indicating the relationship between the buffers
51 @param m1 Pointer to buffer.
52 @param m2 Pointer to buffer.
53 @param n Number of bytes to compare.
56 IMPORT_C signed int memcompare(const unsigned char*, signed int, const unsigned char*, signed int);
60 memcmp (const void* m1, const void* m2, size_t n)
62 return memcompare((const unsigned char*)m1, n, (const unsigned char*)m2, n);