81 char *str = filepart->
data;
83 for (i = 0; (str[i] !=
'\0') &&
mdata->group[i]; i++)
85 if (str[i] !=
mdata->group[i])
101 return init ? 0 : -1;
size_t buf_len(const struct Buffer *buf)
Calculate the length of a Buffer.
void buf_fix_dptr(struct Buffer *buf)
Move the dptr to end of the Buffer.
void buf_free(struct Buffer **ptr)
Deallocates a buffer.
struct Buffer * buf_new(const char *str)
Allocate a new Buffer.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
size_t buf_copy(struct Buffer *dst, const struct Buffer *src)
Copy a Buffer's contents to another Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Convenience wrapper for the library headers.
bool mutt_strn_equal(const char *a, const char *b, size_t num)
Check for equality of two strings (to a maximum), safely.
int nntp_complete(struct Buffer *buf)
Auto-complete NNTP newsgroups.
struct NntpAccountData * CurrentNewsSrv
Current NNTP news server.
Notmuch-specific Mailbox data.
Pop-specific Account data.
void * adata
Private data (for Mailbox backends)
String manipulation buffer.
char * data
Pointer to data.
void * mdata
Driver specific data.
NNTP-specific Account data -.
NNTP-specific Mailbox data -.
struct NntpAccountData * adata