6 void *abook_malloc(size_t size);
7 void *abook_realloc(void *ptr, size_t size);
8 FILE *abook_fopen (const char *path, const char *mode);
10 void launch_wwwbrowser(int item);
11 void launch_mutt(int item);
12 void print_stderr(int item);
14 int strcasecmp (const char *, const char *);
15 int strncasecmp (const char *, const char *, size_t);
18 #define MAIN_HELPLINE "q:quit ?:help a:add r:remove"
20 #define Y_STATUSLINE (LINES - 2)
25 #define DEFAULT_UMASK 066
26 #define DATAFILE ".abook.addressbook"
29 * some "abookwide" useful macros
32 #define hide_cursor() curs_set(0)
33 #define show_cursor() curs_set(1)
35 #define safe_atoi(X) (X == NULL) ? 0 : atoi(X)
36 #define my_free(X) do {free(X); X=NULL;} while(0)
37 #define safe_str(X) X == NULL ? "" : X
38 #define safe_strdup(X) (X == NULL) ? NULL : strdup(X)
41 # define min(x,y) (((x)<(y)) ? (x):(y))
45 # define max(x,y) (((x)>(y)) ? (x):(y))
48 #define ISSPACE(c) isspace((unsigned char)c)