X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d0912d1f5b4c65b0be0c3fba2a264a1cfbf96d08..77603464f5b4231df69eb20ca278062bd7aae9fb:/misc.h diff --git a/misc.h b/misc.h index 7d0ee4d5..d8a43524 100644 --- a/misc.h +++ b/misc.h @@ -3,7 +3,9 @@ #include "puttymem.h" +#include /* for FILE * */ #include /* for va_list */ +#include /* for struct tm */ #ifndef FALSE #define FALSE 0 @@ -15,11 +17,15 @@ 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. *