diff options
| author | manuel <manuel@mausz.at> | 2013-02-04 02:48:34 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-04 02:48:34 +0100 |
| commit | 5d47a7101a2394c7f7bb288585464fa293a2ad33 (patch) | |
| tree | 0c371687c8791b2278c5b8049bbd64a7de1d0863 /strtimet.c | |
| parent | 86d5a6ec30ceea44e9459394d2e6403642cdd158 (diff) | |
| download | qmail-5d47a7101a2394c7f7bb288585464fa293a2ad33.tar.gz qmail-5d47a7101a2394c7f7bb288585464fa293a2ad33.tar.bz2 qmail-5d47a7101a2394c7f7bb288585464fa293a2ad33.zip | |
[PATCH] maildir++ for qmail-local and qmail-pop3d
Patch to make qmail-local and qmail-pop3d compatible with the maildir++ quota
system that is used by vpopmail and courier-imap
qmail-maildir++
Diffstat (limited to 'strtimet.c')
| -rw-r--r-- | strtimet.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/strtimet.c b/strtimet.c new file mode 100644 index 0000000..c174872 --- /dev/null +++ b/strtimet.c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | ** Copyright 1998 - 2000 Double Precision, Inc. | ||
| 3 | ** See COPYING for distribution information. | ||
| 4 | */ | ||
| 5 | |||
| 6 | #if HAVE_CONFIG_H | ||
| 7 | #include "config.h" | ||
| 8 | #endif | ||
| 9 | #include "numlib.h" | ||
| 10 | #include <string.h> | ||
| 11 | |||
| 12 | static const char rcsid[]="$Id: strtimet.c,v 1.3 2000/05/27 04:59:26 mrsam Exp $"; | ||
| 13 | |||
| 14 | char *str_time_t(time_t t, char *arg) | ||
| 15 | { | ||
| 16 | char buf[NUMBUFSIZE]; | ||
| 17 | char *p=buf+sizeof(buf)-1; | ||
| 18 | |||
| 19 | *p=0; | ||
| 20 | do | ||
| 21 | { | ||
| 22 | *--p= '0' + (t % 10); | ||
| 23 | t=t / 10; | ||
| 24 | } while(t); | ||
| 25 | return (strcpy(arg, p)); | ||
| 26 | } | ||
