X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Futil.h;h=69b8f53358464359317b2317fd6b8c341dc72467;hb=313480bbe9994a200ed9a4355d97a033bf0d6151;hp=61ae532ec703f93c18a4638492f7f7da53c3ac46;hpb=ef6f5c2822eb91ea7df55e88018f566be04ad287;p=andemo diff --git a/src/util.h b/src/util.h index 61ae532..69b8f53 100644 --- a/src/util.h +++ b/src/util.h @@ -18,14 +18,13 @@ #define malloc_nf(sz) malloc_nf_impl(sz, __FILE__, __LINE__) void *malloc_nf_impl(size_t sz, const char *file, int line); - #define calloc_nf(num, sz) calloc_nf_impl(num, sz, __FILE__, __LINE__) void *calloc_nf_impl(size_t num, size_t sz, const char *file, int line); - #define realloc_nf(p, sz) realloc_nf_impl(p, sz, __FILE__, __LINE__) void *realloc_nf_impl(void *p, size_t sz, const char *file, int line); - #define strdup_nf(s) strdup_nf_impl(s, __FILE__, __LINE__) char *strdup_nf_impl(const char *s, const char *file, int line); +int match_prefix(const char *str, const char *prefix); + #endif /* UTIL_H_ */