]> diplodocus.org Git - nmh/blobdiff - h/utils.h
cpstripped(): Rewrite multi-byte version.
[nmh] / h / utils.h
index 0c6c7347024f4d432ed12db363754b396e85aed0..297746deeafa673ddec7213b050b55672bae5784 100644 (file)
--- a/h/utils.h
+++ b/h/utils.h
@@ -106,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
  *