Next: dpktf_new, Previous: dpktf_delete, Up: Internal Functions
Compare a name to a data packet field's name.
#include <bpipe/bpipe.h>static int dpktf_name_cmp( const void *name, const void *dpktf );
const void *name
- name
const void *dpktf
- data packet field
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.
It returns ‘-1’, ‘0’, ‘1’ if the name is respectively less than, equal to, or greater than the field's name.