comparison 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
comparison
equal deleted inserted replaced
8:25e227eba3da 9:60c8ab006e55
30 #define EXIT_USAGE 2 30 #define EXIT_USAGE 2
31 31
32 #define COUNTOF(x) ((sizeof (x)/sizeof (0[x])) / ((size_t)(!(sizeof (x) % \ 32 #define COUNTOF(x) ((sizeof (x)/sizeof (0[x])) / ((size_t)(!(sizeof (x) % \
33 sizeof (0[x]))))) 33 sizeof (0[x])))))
34 34
35 #define MAX(x, y) (((x) > (y)) ? (x) : (y))
36 #define MIN(x, y) (((x) < (y)) ? (x) : (y))
37
35 void * xmalloc(size_t); 38 void * xmalloc(size_t);
36 void * xrealloc(void *, size_t); 39 void * xrealloc(void *, size_t);
37 char * xstrdup(const char *); 40 char * xstrdup(const char *);
38 char * xasprintf(char **, const char *, ...); 41 char * xasprintf(char **, const char *, ...);
39 42