X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Futils.h;h=1d55b59f26737aab8f1805da7708ac260c97d9a6;hp=a8059ea2b78f62ff51c20bfba094ea509465b927;hb=60c0878c14c4b56d5c2a231172107af8c4addd0d;hpb=d4f5f9d551c05931478fcdfb5cd4ac06b419eeda diff --git a/h/utils.h b/h/utils.h index a8059ea..1d55b59 100644 --- a/h/utils.h +++ b/h/utils.h @@ -2,12 +2,14 @@ ** utils.h -- utility prototypes */ -void *mh_xmalloc(size_t); void *mh_xrealloc(void *, size_t); +void *mh_xcalloc(size_t, size_t); +void mh_free0(void *); char *pwd(void); -char *add(char *, char *); +char *add(const char *, char *); void create_folder(char *, int, void (*)(int)); int num_digits(int); +char *mh_xstrdup(const char *); struct msgs_array { int max, size; @@ -15,3 +17,4 @@ struct msgs_array { }; void app_msgarg(struct msgs_array *, char *); +int parse_msgs(const struct msgs_array *, char *, struct msgs_array *);