Rewrite and improve formatted output routines.
[pspp-builds.git] / src / libpspp / str.h
index fd6e739b63d6b575f717bb4e3bdea1a6b5175a2e..eaf12c3b2a6a497399ced354e5e19a238d3523d2 100644 (file)
 #include "strtok_r.h"
 #include "vsnprintf.h"
 #include "xvasprintf.h"
-
-#ifndef HAVE_STRCHR
-#define strchr index
-#endif
-#ifndef HAVE_STRRCHR
-#define strrchr rindex
-#endif
 \f
 /* Miscellaneous. */
 
@@ -51,6 +44,7 @@ void buf_reverse (char *, size_t);
 char *buf_find_reverse (const char *, size_t, const char *, size_t);
 int buf_compare_case (const char *, const char *, size_t);
 int buf_compare_rpad (const char *, size_t, const char *, size_t);
+void buf_copy_lpad (char *, size_t, const char *, size_t);
 void buf_copy_rpad (char *, size_t, const char *, size_t);
 void buf_copy_str_lpad (char *, size_t, const char *);
 void buf_copy_str_rpad (char *, size_t, const char *);
@@ -63,6 +57,8 @@ void str_uppercase (char *);
 void str_lowercase (char *);
 
 char *spprintf (char *dst, const char *format, ...);
+
+void *mempset (void *, int, size_t);
 \f
 /* Common character classes for use with substring and string functions. */