Obtains the error message indexed by error.
pcap Library (libpcap.a)
#include <pcap.h>
char *pcap_strerror(int error);
Lookup the error message indexed by error. The possible values of error correspond to the values of the errno global variable. This function is equivalent to the strerror subroutine.
error | Specifies the key to use in obtaining the corresponding error message. The error message is taken from the system's sys_errlist. |
The pcap_strerror subroutine returns the appropriate error message from the system error list.
The pcap_geterr (pcap_geterr Subroutine) subroutine, pcap_perror (pcap_perror Subroutine) subroutine, strerror subroutine.