diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-02-04 14:33:05 -0800 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-02-04 14:33:05 -0800 |
| commit | 72aa4910006b9d2343b748ea15f587ceb8857af5 (patch) | |
| tree | 47687d99b378b1ba7fa41bd58e47b66dae2712ee /src/dwm/dwm-6.6/util.h | |
| parent | 90ebb61d9352ce5fbc04588231a8408097e0dfac (diff) | |
suckless includes
Diffstat (limited to 'src/dwm/dwm-6.6/util.h')
| -rw-r--r-- | src/dwm/dwm-6.6/util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dwm/dwm-6.6/util.h b/src/dwm/dwm-6.6/util.h new file mode 100644 index 0000000..c0a50d4 --- /dev/null +++ b/src/dwm/dwm-6.6/util.h @@ -0,0 +1,9 @@ +/* See LICENSE file for copyright and license details. */ + +#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); |
