move functions around.
[apps/madmutt.git] / lib-lib / str.h
index a5791c3..d62dc0a 100644 (file)
@@ -181,4 +181,12 @@ m_stristr(const char *haystack, const char *needle) {
     return m_stristrn(haystack, needle, m_strlen(needle));
 }
 
+
+/****************************************************************************/
+/* misc functions                                                           */
+/****************************************************************************/
+
+/* replace any %s with src, or appends " $src" */
+ssize_t m_snsubst(char *dst, ssize_t n, const char *fmt, const char *src);
+
 #endif /* MUTT_LIB_LIB_STR_H */