Find the parent of a Mailbox path.
More...
Find the parent of a Mailbox path.
- Parameters
-
buf | Path to modify |
buflen | Length of buffer |
- Return values
-
- Precondition
- buf is not NULL
◆ comp_path_parent()
static int comp_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Find the parent of a Mailbox path - Implements MxOps::path_parent() -.
Definition at line 923 of file compress.c.
924{
926 return 0;
927
928 if (buf[0] == '~')
930
932 return 0;
933
934 return -1;
935}
char * HomeDir
User's home directory.
bool mutt_path_canon(char *buf, size_t buflen, const char *homedir, bool is_dir)
Create the canonical version of a path.
bool mutt_path_parent(char *buf)
Find the parent of a path.
◆ imap_path_parent()
static int imap_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Find the parent of a Mailbox path - Implements MxOps::path_parent() -.
Definition at line 2486 of file imap.c.
2487{
2489
2492 return 0;
2493}
void imap_get_parent_path(const char *path, char *buf, size_t buflen)
Get the path of the parent folder.
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
◆ maildir_path_parent()
static int maildir_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Find the parent of a Mailbox path - Implements MxOps::path_parent() -.
Definition at line 1599 of file maildir.c.
1600{
1602 return 0;
1603
1604 if (buf[0] == '~')
1606
1608 return 0;
1609
1610 return -1;
1611}
◆ mh_path_parent()
static int mh_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Find the parent of a Mailbox path - Implements MxOps::path_parent() -.
Definition at line 1186 of file mh.c.
1187{
1189 return 0;
1190
1191 if (buf[0] == '~')
1193
1195 return 0;
1196
1197 return -1;
1198}
◆ mbox_path_parent()
static int mbox_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Find the parent of a Mailbox path - Implements MxOps::path_parent() -.
Definition at line 1742 of file mbox.c.
1743{
1745 return 0;
1746
1747 if (buf[0] == '~')
1749
1751 return 0;
1752
1753 return -1;
1754}
◆ nntp_path_parent()
static int nntp_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
◆ nm_path_parent()
static int nm_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
◆ pop_path_parent()
static int pop_path_parent |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |