From 657e41fd099f81a4a9a63d1f2df4883867ccd851 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Mon, 22 May 2023 09:32:04 -0500 Subject: [PATCH] Add rig_date_strget to DLL for WSJTX use --- include/hamlib/rig.h | 2 ++ src/misc.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index c5ec621fc..424f404e0 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -3476,6 +3476,8 @@ extern HAMLIB_EXPORT(int) rig_get_lock_mode(RIG *rig, int *lock); extern HAMLIB_EXPORT(int) rig_is_model(RIG *rig, rig_model_t model); +extern HAMLIB_EXPORT(char*) rig_date_strget(char *buf, int buflen, int localtime); + //! @endcond diff --git a/src/misc.c b/src/misc.c index 467198065..8a3b1c4ee 100644 --- a/src/misc.c +++ b/src/misc.c @@ -2723,6 +2723,11 @@ char *date_strget(char *buf, int buflen, int localtime) return buf; } +char *rig_date_strget(char *buf, int buflen, int localtime) +{ + return date_strget(buf,buflen,localtime); +} + const char *spaces() { static char *s = " ";