Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gai_strerror(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getaddrinfo(3)

getnameinfo(3)

gai_strerror(3)  —  Subroutines

NAME

gai_strerror − Print an error message string based on a return code from the getaddrinfo or getnameinfo routine

SYNOPSIS

#include <netdb.h>
char ∗gai_strerror(
        int ecode );

LIBRARY

Standard C Library (libc)

PARAMETERS

ecode
Specifies an error code returned from either getaddrinfo() or getnameinfo(). 

DESCRIPTION

The gai_strerror() routine returns a pointer to a string that describes the error based on an EAI_xxx value returned by the getaddrinfo() or getnameinfo() routine. 

RETURN VALUES

Upon successful completion, the gai_strerror() routine returns a pointer to a string describing the error.  If the ecode parameter is not a valid EAI_xxx value, the routine returns a pointer to a string that indicates an unknown error. 

SEE ALSO

Functions: getaddrinfo(3), getnameinfo(3). 

Network Programmer’s Guide

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026