Next: , Previous: dpktf_delete, Up: Internal Functions   [Contents]


A.5.33 dpktf_name_cmp

Compare a name to a data packet field’s name.

Synopsis

#include <bpipe/bpipe.h>

static int dpktf_name_cmp(
  const void *name,
  const void *dpktf
);

Parameters

const void *name

name

const void *dpktf

data packet field

Description

This routine compares a name to a data packet field’s name using string collating sequence. The first parameter is the name, the second a pointer to the data packet field structure.

Returns

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