New function ltime() returns a struct tm of the current local time.
[u/mdw/putty] / misc.h
diff --git a/misc.h b/misc.h
index 7739446..fe5056c 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -5,6 +5,7 @@
 
 #include <stdio.h>                    /* for FILE * */
 #include <stdarg.h>                   /* for va_list */
+#include <time.h>                      /* for struct_tm */
 
 #ifndef FALSE
 #define FALSE 0
@@ -41,6 +42,8 @@ void bufchain_prefix(bufchain *ch, void **data, int *len);
 void bufchain_consume(bufchain *ch, int len);
 void bufchain_fetch(bufchain *ch, void *data, int len);
 
+struct tm ltime(void);
+
 /*
  * Debugging functions.
  *