Skip to content
Snippets Groups Projects
Commit b5caa291 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create a C++ wrapper for unixtodstr()

No need to use time32_t for this.
parent 354d296a
No related branches found
No related tags found
No related merge requests found
......@@ -823,6 +823,7 @@ public:
char* server_host_name(void);
char* timestr(time_t);
char* datestr(time_t, char* str = nullptr);
char* unixtodstr(time_t, char* str = nullptr);
char timestr_output[60]{};
char datestr_output[60]{};
char* age_of_posted_item(char* buf, size_t max, time_t);
......
......@@ -983,6 +983,13 @@ char* sbbs_t::datestr(time_t t, char* str)
return ::datestr(&cfg, t, str);
}
char* sbbs_t::unixtodstr(time_t t, char* str)
{
if(str == nullptr)
str = datestr_output;
return ::unixtodstr(&cfg, t, str);
}
void sbbs_t::sys_info()
{
char tmp[128];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment