[Top] [Prev] [Next] [Bottom]

Fstrerror (3FML)

Fstrerror (3FML)

Name

Fstrerror, Fstrerror32-get error message string for FML error

Synopsis

#include <fml.h> 

char *
Fstrerror(int err)

#include <fml32.h>

char *
Fstrerror32(int err)

Description

Fstrerror is used to retrieve the text of an error message from LIBFML_CAT. err is the error code set in F_error when a FML function call returns a -1 or other failure value.

The user can use the pointer returned by Fstrerror as an argument to userlog or F_error.

Fstrerror32 is used with 32-bit FML.

Return Values

If err is an invalid error code, Fstrerror returns a NULL. On success, the function returns a pointer to a string that contains the error message text.

Errors

Fstrerror returns a NULL on error, but does not set F_error.

See Also

Fintro(3fml), tpstrerror(3c), F_error(3fml), userlog(3c)



[Top] [Prev] [Next] [Bottom]