summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-07-22 06:47:18 -0600
committerKarl Williamson <khw@cpan.org>2020-08-17 21:47:04 -0600
commit7338c6028f2057ae517272af101ba28fd5656aef (patch)
treeecc442d082ecd4deb0b6089421027213eb45e5e0 /util.c
parent00b72c9f5c9652dedbe8b044b5d73da757211c96 (diff)
downloadperl-7338c6028f2057ae517272af101ba28fd5656aef.tar.gz
Document my_strftime
Diffstat (limited to 'util.c')
-rw-r--r--util.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/util.c b/util.c
index 578ceddabb..9adbe7ab98 100644
--- a/util.c
+++ b/util.c
@@ -3866,13 +3866,18 @@ Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, int hour, int mday, in
{
#ifdef HAS_STRFTIME
- /* strftime(), but with a different API so that the return value is a pointer
- * to the formatted result (which MUST be arranged to be FREED BY THE
- * CALLER). This allows this function to increase the buffer size as needed,
- * so that the caller doesn't have to worry about that.
- *
- * Note that yday and wday effectively are ignored by this function, as
- * mini_mktime() overwrites them */
+/*
+=for apidoc my_strftime
+strftime(), but with a different API so that the return value is a pointer
+to the formatted result (which MUST be arranged to be FREED BY THE
+CALLER). This allows this function to increase the buffer size as needed,
+so that the caller doesn't have to worry about that.
+
+Note that yday and wday effectively are ignored by this function, as
+mini_mktime() overwrites them
+
+=cut
+ */
char *buf;
int buflen;