Previous: bpipe_sprintf, Up: Utility Functions


A.4.22 bpipe_strerror

Get an error message string.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
char *bpipe_strerror(BPerrno errnum);

Parameters

BPerrno errnum
Possible values for a BPerrno are as follows: BPNOERROR, BPEBADARG, BPENOMEM, BPEBADPIPE, BPEIOERR, BPENOFILE

Description

bpipe_strerror returns a character string which describes the passed BPipe error code. The passed string is static, so don't try to overwrite it.

Returns

A pointer to a character string.