pcap_strerror Subroutine

Purpose

Obtains the error message indexed by error.

Library

pcap Library (libpcap.a)

Syntax

#include <pcap.h>

char *pcap_strerror(int  error);

Description

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.

Parameters

Item Description
error Specifies the key to use in obtaining the corresponding error message. The error message is taken from the system's sys_errlist.

Return Values

The pcap_strerror subroutine returns the appropriate error message from the system error list.