60 for (
char *p = buf; p && (p[0] !=
'\0'); p++)
62 if (!tag && isspace(*p))
66 if ((p[0] ==
',') || (p[0] ==
' '))
68 else if (p[1] ==
'\0')
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_HEAD_INITIALIZER
Static initializer for arrays.
Convenience wrapper for the library headers.
char * mutt_str_dup(const char *str)
Copy a string, safely.
void nm_tag_array_free(struct NmTags *tags)
Free all memory of a NmTags.
struct NmTags nm_tag_str_to_tags(const char *tag_str)
Converts a comma and/or space-delimited string of tags into an array.