Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
73033b07
Commit
73033b07
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
date_str.c functions (unixtodstr, etc) are now exported (for use in SBBSCTRL).
parent
cd6c27bc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/date_str.c
+3
-3
3 additions, 3 deletions
src/sbbs3/date_str.c
src/sbbs3/sbbs.h
+9
-6
9 additions, 6 deletions
src/sbbs3/sbbs.h
with
12 additions
and
9 deletions
src/sbbs3/date_str.c
+
3
−
3
View file @
73033b07
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
/****************************************************************************/
/****************************************************************************/
/* Converts a date string in format MM/DD/YY into unix time format */
/* Converts a date string in format MM/DD/YY into unix time format */
/****************************************************************************/
/****************************************************************************/
time_t
dstrtounix
(
scfg_t
*
cfg
,
char
*
str
)
time_t
DLLCALL
dstrtounix
(
scfg_t
*
cfg
,
char
*
str
)
{
{
struct
tm
tm
;
struct
tm
tm
;
...
@@ -64,7 +64,7 @@ time_t dstrtounix(scfg_t* cfg, char *str)
...
@@ -64,7 +64,7 @@ time_t dstrtounix(scfg_t* cfg, char *str)
/****************************************************************************/
/****************************************************************************/
/* Converts unix time format (long - time_t) into a char str MM/DD/YY */
/* Converts unix time format (long - time_t) into a char str MM/DD/YY */
/****************************************************************************/
/****************************************************************************/
char
*
unixtodstr
(
scfg_t
*
cfg
,
time_t
unix_time
,
char
*
str
)
char
*
DLLCALL
unixtodstr
(
scfg_t
*
cfg
,
time_t
unix_time
,
char
*
str
)
{
{
struct
tm
*
tm
;
struct
tm
*
tm
;
...
@@ -93,7 +93,7 @@ char * unixtodstr(scfg_t* cfg, time_t unix_time, char *str)
...
@@ -93,7 +93,7 @@ char * unixtodstr(scfg_t* cfg, time_t unix_time, char *str)
/****************************************************************************/
/****************************************************************************/
/* Takes the value 'sec' and makes a string the format HH:MM:SS */
/* Takes the value 'sec' and makes a string the format HH:MM:SS */
/****************************************************************************/
/****************************************************************************/
char
*
sectostr
(
uint
sec
,
char
*
str
)
char
*
DLLCALL
sectostr
(
uint
sec
,
char
*
str
)
{
{
uchar
hour
,
min
,
sec2
;
uchar
hour
,
min
,
sec2
;
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbs.h
+
9
−
6
View file @
73033b07
...
@@ -713,6 +713,15 @@ extern "C" {
...
@@ -713,6 +713,15 @@ extern "C" {
DLLEXPORT
BOOL
DLLCALL
load_cfg
(
scfg_t
*
cfg
,
char
*
text
[]);
DLLEXPORT
BOOL
DLLCALL
load_cfg
(
scfg_t
*
cfg
,
char
*
text
[]);
/* date_str.c */
/* ASCII date (MM/DD/YY) to unix conversion */
DLLEXPORT
time_t
DLLCALL
dstrtounix
(
scfg_t
*
,
char
*
str
);
/* Unix time to ASCII date */
DLLEXPORT
char
*
DLLCALL
unixtodstr
(
scfg_t
*
,
time_t
,
char
*
str
);
/* seconds to HH:MM:SS */
DLLEXPORT
char
*
DLLCALL
sectostr
(
uint
sec
,
char
*
str
);
#ifdef SBBS
/* These aren't exported */
#ifdef SBBS
/* These aren't exported */
/* misc.c */
/* misc.c */
...
@@ -739,12 +748,6 @@ extern "C" {
...
@@ -739,12 +748,6 @@ extern "C" {
int
lprintf
(
char
*
fmt
,
...);
int
lprintf
(
char
*
fmt
,
...);
int
lputs
(
char
*
);
int
lputs
(
char
*
);
/* date_str.c */
time_t
dstrtounix
(
scfg_t
*
,
char
*
str
);
/* ASCII date (MM/DD/YY) to unix conversion */
char
*
unixtodstr
(
scfg_t
*
,
time_t
,
char
*
str
);
/* Unix time to ASCII date */
char
*
sectostr
(
uint
sec
,
char
*
str
);
/* seconds to HH:MM:SS */
/* qwk.cpp */
/* qwk.cpp */
void
remove_re
(
char
*
str
);
void
remove_re
(
char
*
str
);
#ifdef __cplusplus
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment