return 0;
}
+
+/**
+ * mutt_getcwd - Get the current working directory
+ * @param cwd Buffer for the result
+ */
+void mutt_getcwd(struct Buffer *cwd)
+{
+ mutt_buffer_increase_size(cwd, PATH_MAX);
+ char *retval = getcwd(cwd->data, cwd->dsize);
+ while (!retval && (errno == ERANGE))
+ {
+ mutt_buffer_increase_size(cwd, cwd->dsize + 256);
+ retval = getcwd(cwd->data, cwd->dsize);
+ }
+ if (retval)
+ mutt_buffer_fix_dptr(cwd);
+ else
+ mutt_buffer_reset(cwd);
+}
char * mutt_expand_path(char *s, size_t slen);
char * mutt_expand_path_regex(char *buf, size_t buflen, bool regex);
char * mutt_gecos_name(char *dest, size_t destlen, struct passwd *pw);
+void mutt_getcwd(struct Buffer *cwd);
void mutt_get_parent_path(char *path, char *buf, size_t buflen);
int mutt_inbox_cmp(const char *a, const char *b);
bool mutt_is_text_part(struct Body *b);