diff options
Diffstat (limited to 'dmenu/util.h')
| -rw-r--r-- | dmenu/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dmenu/util.h b/dmenu/util.h index f633b51..6db39c8 100644 --- a/dmenu/util.h +++ b/dmenu/util.h @@ -3,6 +3,8 @@ #define MAX(A, B) ((A) > (B) ? (A) : (B)) #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) +#define LENGTH(X) (sizeof (X) / sizeof (X)[0]) void die(const char *fmt, ...); void *ecalloc(size_t nmemb, size_t size); +int startswith(const char* prefix, const char* str); |
