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 7d0ee4d..fe5056c 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -3,7 +3,9 @@
 
 #include "puttymem.h"
 
+#include <stdio.h>                    /* for FILE * */
 #include <stdarg.h>                   /* for va_list */
+#include <time.h>                      /* for struct_tm */
 
 #ifndef FALSE
 #define FALSE 0
 typedef struct Filename Filename;
 typedef struct FontSpec FontSpec;
 
+unsigned long parse_blocksize(const char *bs);
+
 char *dupstr(const char *s);
 char *dupcat(const char *s1, ...);
 char *dupprintf(const char *fmt, ...);
 char *dupvprintf(const char *fmt, va_list ap);
 
+char *fgetline(FILE *fp);
+
 void base64_encode_atom(unsigned char *data, int n, char *out);
 
 struct bufchain_granule;
@@ -36,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.
  *