[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


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


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.

Related Information

The pcap_geterr (pcap_geterr Subroutine) subroutine, pcap_perror (pcap_perror Subroutine) subroutine, strerror subroutine.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]