HTTP Fetcher Library Documentation

Return to Main

NAME

http_perror - Print an error message.
 

SYNOPSIS

#include <http_fetcher.h>

void http_perror(const char *string);
 

DESCRIPTION

Prints an informative error message to standard error regarding the most recent error encountered within an HTTP Fetcher call.

Any HTTP Fetcher function that returns -1 can be investigated by using http_perror.

The argument string is printed first, then a colon and a blank, then a message followed by a newline. To be of most use, the argument string should include the name of the function that incurred the error.
 

RETURN VALUE

Returns no value.
 

SEE ALSO

 http_strerror(3)


Return to Main