Commit 4ea13946 4ea139462d9235aae6428244706cc24e0029bc1c by Sergey Poznyakoff

(mu-strerror): New function

1 parent e513fff2
...@@ -153,6 +153,17 @@ SCM_DEFINE (scm_mu_register_format, "mu-register-format", 0, 0, 1, ...@@ -153,6 +153,17 @@ SCM_DEFINE (scm_mu_register_format, "mu-register-format", 0, 0, 1,
153 } 153 }
154 #undef FUNC_NAME 154 #undef FUNC_NAME
155 155
156 SCM_DEFINE (scm_mu_strerror, "mu-strerror", 1, 0, 0,
157 (SCM ERR),
158 "Return the error message corresponding to ERR, which must be\n"
159 "an integer value.\n")
160 #define FUNC_NAME s_scm_mu_strerror
161 {
162 SCM_ASSERT (scm_is_integer (ERR), ERR, SCM_ARG1, FUNC_NAME);
163 return scm_makfrom0str (mu_strerror (scm_to_int (ERR)));
164 }
165 #undef FUNC_NAME
166
156 static struct 167 static struct
157 { 168 {
158 char *name; 169 char *name;
......