summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authorGravatar default2022-09-28 17:18:30 +0200
committerGravatar default2022-09-28 17:18:30 +0200
commite7e89d2d57b9308884385c2e97bd750475385cc4 (patch)
tree7db686f8696d03cd064b377d9e3c6fc4f580e8e3 /snac.c
parentMore HTML work. (diff)
downloadpenes-snac2-e7e89d2d57b9308884385c2e97bd750475385cc4.tar.gz
penes-snac2-e7e89d2d57b9308884385c2e97bd750475385cc4.tar.xz
penes-snac2-e7e89d2d57b9308884385c2e97bd750475385cc4.zip
New function ftime().
Diffstat (limited to '')
-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)
58} 58}
59 59
60 60
61double ftime(void)
62/* returns the UNIX time as a float */
63{
64 xs *ntid = tid(0);
65
66 return atof(ntid);
67}
68
69
61int validate_uid(char *uid) 70int validate_uid(char *uid)
62/* returns if uid is a valid identifier */ 71/* returns if uid is a valid identifier */
63{ 72{