X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=misc.h;h=9b42d2c6ab9e6ad69de06472b8d0e7538fa231d0;hb=fe9d79836b5620747b54a666c65206d61732c960;hp=7cee12815f74a27b9cfc8748c7da9be9878f16ef;hpb=0d3c17d9ab127e5596c8fb97d65122b3b90f6b11;p=pkg%2Fabook.git diff --git a/misc.h b/misc.h index 7cee128..9b42d2c 100644 --- a/misc.h +++ b/misc.h @@ -9,12 +9,17 @@ char *strtrim(char *); char *mkstr (const char *format, ... ); char *strconcat (const char *str, ...); -int safe_strcmp(const char *s1, const char * s2); +int safe_strcmp(const char *s1, const char *s2); +int safe_strcoll(const char *s1, const char *s2); char *my_getcwd(); char *getaline(FILE *f); +int strwidth(const char *s); +int bytes2width(const char *s, int width); + + #ifdef HAVE_CONFIG_H # include "config.h" #endif