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 DIR_IN_HOME ".abook"
27 #define DATAFILE "addressbook"
29 #define RCFILE "abookrc"
32 * some "abookwide" useful macros
35 #define hide_cursor() curs_set(0)
36 #define show_cursor() curs_set(1)
38 #define safe_atoi(X) (X == NULL) ? 0 : atoi(X)
39 #define my_free(X) do {free(X); X=NULL;} while(0)
40 #define safe_str(X) X == NULL ? "" : X
41 #define safe_strdup(X) (X == NULL) ? NULL : strdup(X)
44 # define min(x,y) (((x)<(y)) ? (x):(y))
48 # define max(x,y) (((x)>(y)) ? (x):(y))
51 #define ISSPACE(c) isspace((unsigned char)c)