diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-08-06 12:12:00 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-08-06 12:12:00 +0200 |
| commit | 11e470ab4254304192997834e26166cfddc78f80 (patch) | |
| tree | e425d7826c5c3821e9717bdce6b833d722cf3bf7 /util.h | |
| parent | ce36d2ea39fa4883e40f06d5d61fde2847bee987 (diff) | |
| download | dwm-11e470ab4254304192997834e26166cfddc78f80.tar.gz dwm-11e470ab4254304192997834e26166cfddc78f80.tar.bz2 dwm-11e470ab4254304192997834e26166cfddc78f80.tar.xz dwm-11e470ab4254304192997834e26166cfddc78f80.zip | |
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5,5 +5,15 @@ #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) #define LENGTH(X) (sizeof (X) / sizeof (X)[0]) +#ifdef _DEBUG +#define DEBUG(...) fprintf(stderr, __VA_ARGS__) +#else +#define DEBUG(...) +#endif + void die(const char *fmt, ...); void *ecalloc(size_t nmemb, size_t size); +int normalizepath(const char *path, char **normal); +int mkdirp(const char *path); +int parentdir(const char *path, char **parent); +int nullterminate(char **str, size_t *len); |
