diff options
author | default <nobody@localhost> | 2022-09-28 17:18:30 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-28 17:18:30 +0200 |
commit | e7e89d2d57b9308884385c2e97bd750475385cc4 (patch) | |
tree | 7db686f8696d03cd064b377d9e3c6fc4f580e8e3 /snac.c | |
parent | 5647e675fd59d06b8a9a6016076b45978bdd4d4b (diff) |
New function ftime().
Diffstat (limited to 'snac.c')
-rw-r--r-- | snac.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ { |