X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d0912d1f5b4c65b0be0c3fba2a264a1cfbf96d08..2ac3322ef9bc032ad942753a56696764aa0b0f74:/misc.h?ds=inline diff --git a/misc.h b/misc.h index 7d0ee4d5..ae883e16 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. * @@ -44,7 +52,7 @@ void bufchain_fetch(bufchain *ch, void *data, int len); * debug(()) (note the double brackets) is like printf(). * * dmemdump() and dmemdumpl() both do memory dumps. The difference - * is that dmemdumpl() is more suited for when where the memory is is + * is that dmemdumpl() is more suited for when the memory address is * important (say because you'll be recording pointer values later * on). dmemdump() is more concise. */