X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3f1f199234e06fdbd18c10860f19bdd1706a0f76..a091c28b416f83aa46dcb0bd0da81ca1d3b8a7f9:/h/utils.h?ds=inline diff --git a/h/utils.h b/h/utils.h index 19d71563..297746de 100644 --- a/h/utils.h +++ b/h/utils.h @@ -65,7 +65,6 @@ struct msgnum_array { void app_msgarg(struct msgs_array *, char *); void app_msgnum(struct msgnum_array *, int); -int open_form(char **, char *); char *find_str (const char [], size_t, const char *); char *rfind_str (const char [], size_t, const char *); char *nmh_strcasestr (const char *, const char *); @@ -107,6 +106,19 @@ int contains8bit(const char *start, const char *end); */ int scan_input (int fd, int *eightbit); +/* + * Returns string representation of int, in static memory. + */ +char *m_str(int value); + +/* + * Returns string representation of an int, in static memory. If width + * == 0, does not limit the width. If width > 0 and value will not fit + * in field of that size, including any negative sign but excluding + * terminating null, then returns "?". + */ +char *m_strn(int value, unsigned int width); + /* * program initialization *