*p = '_';
}
+void mutt_getcwd (BUFFER *cwd)
+{
+ char *retval;
+
+ mutt_buffer_increase_size (cwd, _POSIX_PATH_MAX);
+ retval = getcwd (cwd->data, cwd->dsize);
+ while (!retval && errno == ERANGE)
+ {
+ mutt_buffer_increase_size (cwd, cwd->dsize + STRING);
+ retval = getcwd (cwd->data, cwd->dsize);
+ }
+ if (retval)
+ mutt_buffer_fix_dptr (cwd);
+ else
+ mutt_buffer_clear (cwd);
+}
+
/* Note this function uses a fixed size buffer of LONG_STRING and so
* should only be used for visual modifications, such as disp_subj. */
char *mutt_apply_replace (char *dbuf, size_t dlen, char *sbuf, REPLACE_LIST *rlist)
void mutt_free_parameter (PARAMETER **);
void mutt_free_regexp (REGEXP **);
void mutt_generate_header (char *, size_t, HEADER *, int);
+void mutt_getcwd (BUFFER *);
void mutt_help (int);
const char *mutt_idxfmt_hook (const char *, CONTEXT *, HEADER *);
void mutt_draw_tree (CONTEXT *);