spmenu/libs/main.h

14 lines
404 B
C
Raw Permalink Normal View History

2023-01-20 23:17:30 +01:00
/* See LICENSE file for copyright and license details. */
#ifndef MAX
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#endif
#ifndef MIN
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size);
2023-06-12 03:39:29 +02:00
size_t sp_strncpy(char *dest, const char *src, size_t size);