Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
e60ea849
...
e60ea849c473ce8cc06c85447bd797aa3ea63e67
authored
2006-03-12 14:16:50 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_strftime): New function
1 parent
bc30c7ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
include/mailutils/mutil.h
mailbox/mutil.c
include/mailutils/mutil.h
View file @
e60ea84
...
...
@@ -144,6 +144,10 @@ extern int mu_set_default_fallback (const char *str);
extern
int
mu_is_proto
(
const
char
*
p
);
extern
int
mu_mh_delim
(
const
char
*
str
);
extern
size_t
mu_strftime
(
char
*
s
,
size_t
max
,
const
char
*
format
,
const
struct
tm
*
tm
);
#ifdef __cplusplus
}
...
...
mailbox/mutil.c
View file @
e60ea84
...
...
@@ -1354,4 +1354,15 @@ __argp_base_name (const char *arg)
return
p
?
p
+
1
:
arg
;
}
/* A locale-independent version of strftime */
size_t
mu_strftime
(
char
*
s
,
size_t
max
,
const
char
*
format
,
const
struct
tm
*
tm
)
{
size_t
size
;
mu_set_locale
(
"C"
);
size
=
strftime
(
s
,
max
,
format
,
tm
);
mu_restore_locale
();
return
size
;
}
...
...
Please
register
or
sign in
to post a comment