PetscMemcmp

Compares two byte streams in memory.

Synopsis

int PetscMemcmp(void * str1, void *str2, int len)
Not Collective

Input Parameters

str1 - Pointer to the first byte stream
str2 - Pointer to the second byte stream
len - The length of the byte stream (both str1 and str2 are assumed to be of length 'len')

Output Parameters

returns integer less than, equal to, or -greater than 0, according to whether str11 is less than, equal to, or greater than str2.

Note

This routine is anologous to memcmp()

Location: src/sys/src/utilsmemc.c
System Index
Table of Contents