| Libgretl Reference Manual |
|---|
gretl_errorsgretl_errors — |
void errmsg (int err, PRN *prn); const char* errmsg_get_with_default (int err); const char* gretl_errmsg_get (void); void gretl_errmsg_set (const char *str); void gretl_error_clear (void);
void errmsg (int err,
PRN *prn);
Prints to prn a specific error message if available,
otherwise a generic error message corresponding to the
given err.
err : |
gretl error code (see error_codes). |
prn : |
gretl printing struct. |
const char* errmsg_get_with_default (int err);
err : |
gretl error code (see error_codes). |
| Returns : | a specific error message if available,
otherwise a generic error message corresponding to the
given err.
|
const char* gretl_errmsg_get (void);
| Returns : | a specific error message if available, otherwise an empty string. |
void gretl_errmsg_set (const char *str);
If gretl_errmsg is currently blank, copy the given string into
the message space; or if the error message is not blank but
sufficient space remains, append str to the message.
str : |
an error message. |
| << options | Main definitions and structs >> |