summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-28 17:18:30 +0200
committerdefault <nobody@localhost>2022-09-28 17:18:30 +0200
commite7e89d2d57b9308884385c2e97bd750475385cc4 (patch)
tree7db686f8696d03cd064b377d9e3c6fc4f580e8e3 /snac.c
parent5647e675fd59d06b8a9a6016076b45978bdd4d4b (diff)
New function ftime().
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/snac.c b/snac.c
index 3c9fd40..3140474 100644
--- a/snac.c
+++ b/snac.c
@@ -58,6 +58,15 @@ d_char *tid(int offset)
}
+double ftime(void)
+/* returns the UNIX time as a float */
+{
+ xs *ntid = tid(0);
+
+ return atof(ntid);
+}
+
+
int validate_uid(char *uid)
/* returns if uid is a valid identifier */
{