Next: , Previous: hdrf_get, Up: Internal Functions


A.5.45 hdrf_index_cmp

Compare an index to that in a header field.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
static int hdrf_index_cmp( const void *indexp, const void *field );

Parameters

const void *indexp
a pointer to the name
const void *field
a pointer to the field

Description

Compare an index to that in a header field.

Returns

It returns ‘-1’, ‘0’, or ‘1’ if the index is less than, equal to, or greater than, the header field's index, respectively