Mercurial > projects > pwm
diff util.h @ 9:60c8ab006e55
Update metadata
Update password file metadata when saving.
Add and update metadata when creating and modifying records.
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Fri, 28 Jul 2017 09:53:46 +0200 |
parents | bec6f94453ec |
children | a07665727c19 |
line wrap: on
line diff
--- a/util.h Fri Jul 28 08:20:38 2017 +0200 +++ b/util.h Fri Jul 28 09:53:46 2017 +0200 @@ -32,6 +32,9 @@ #define COUNTOF(x) ((sizeof (x)/sizeof (0[x])) / ((size_t)(!(sizeof (x) % \ sizeof (0[x]))))) +#define MAX(x, y) (((x) > (y)) ? (x) : (y)) +#define MIN(x, y) (((x) < (y)) ? (x) : (y)) + void * xmalloc(size_t); void * xrealloc(void *, size_t); char * xstrdup(const char *);