lash_perror


[ Synopsis | Description | Diagnostics | See also | Back to core package documentation ]

Synopsis

#include "lash-diag.h"

void lash_perror(char *s);

Description

Produces a message on the standard error output, describing the last error encountered during a call to a LASH function. The argument string s is printed first, followed by a colon and a blank, and then by the message and a newline. (However, if s is a null pointer or points to an empty string, the colon is not printed.) To be of most use, the argument string should include the name of the program that incurred the error. The error number is taken from the global variable lash_errno, which is set when errors occur but not cleared when non-erroneous calls are made.

Diagnostics

This function does not detect errors.

See also

lash_errno

[ Synopsis | Description | Diagnostics | See also | Back to core package documentation ]