Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

ls_perror()

Prints LSF error messages.

DESCRIPTION

ls_perror() is a LSLIB library routine for printing LSF error messages. The global variable lserrno, maintained by LSLIB, indicates the error number of the most recent LSLIB call that caused an error.

ls_perror() prints on the standard error output the character string usrMsg, if it is not a null pointer, followed by a colon and a space, then an error message that describes the error that corresponds to the value of lserrno, followed by a newline. If an LSLIB call failed due to a system error, then the system error message as indicated by errno is included in the error message.

SYNOPSIS

#include <lsf/lsf.h> 
void ls_perror(char *usrMsg) 

PARAMETERS

*usrMsg

The standard output error string.

RETURN VALUES

void:

There is no return value.

ERRORS

Systems that conform to the Single UNIX specification are not required to detect error conditions for this function. - Error handling

SEE ALSO

Related APIs

ls_sysmsg()

ls_errlog()

Equivalent line command

none

Files

lsf/lsf.h


Platform Computing Inc.
www.platform.com
Knowledge Center         Contents    Previous  Next