Next: hdrf_index_cmp, Previous: hdrf_delete, Up: Internal Functions
Get a pointer to a header field.
#include <bpipe/bpipe.h>static HdrField *hdrf_get( BPipe *bpipe, char *name, size_t index );
BPipe *bpipe
- binary pipe with which this field is associated
char *name
- the field's name
size_t index
- the field's index. set to
BPHdrfIdx_LAST
to select the last one.
Get a pointer to a header field.
It returns a pointer to the header field if it exists, NULL
if it doesn't. Upon error it returns NULL
and sets
bpipe_errno
.
Upon error bpipe_errno
is set to one of the following:
BPEBADARG