4 typedef struct abook_list_t {
6 struct abook_list_t *next;
14 char *revstr(char *str);
15 char *strupper(char *str);
16 char *strlower(char *str);
17 char *strtrim(char *);
19 char *strdup_printf(const char *format, ... );
20 char *strconcat(const char *str, ...);
22 int safe_strcmp(const char *s1, const char *s2);
23 int safe_strcoll(const char *s1, const char *s2);
27 char *getaline(FILE *f);
29 int strwidth(const char *s);
30 int bytes2width(const char *s, int width);
33 void abook_list_append(abook_list **list, char *str);
34 void abook_list_free(abook_list **list);
35 char *abook_list_to_csv(abook_list *list);
36 abook_list *csv_to_abook_list(char *str);
37 void abook_list_rotate(abook_list **list, enum rotate_dir dir);
38 void abook_list_replace(abook_list **list, int index, char *str);
39 abook_list *abook_list_get(abook_list *list, int index);
40 #define abook_list_delete(list, index) abook_list_replace(list, index, NULL)
50 int snprintf (char *str, size_t count, const char *fmt, ...);
52 #ifndef HAVE_VSNPRINTF
53 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);