X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Futils.h;h=e244b8ad83232f09c26e53b09f6892288c1be5a0;hp=409cdc5a75e69526a2a764d8863205118d7d0dd9;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hpb=f5a10978710a3e9907fbef31b7df9f414acccb16 diff --git a/src/utils.h b/src/utils.h index 409cdc5a..e244b8ad 100644 --- a/src/utils.h +++ b/src/utils.h @@ -98,7 +98,6 @@ bool has_wildcards_p (const char *); bool has_html_suffix_p (const char *); -char *read_whole_line (FILE *); struct file_memory *wget_read_file (const char *); void wget_read_file_free (struct file_memory *); @@ -140,8 +139,8 @@ void xsleep (double); /* How many bytes it will take to store LEN bytes in base64. */ #define BASE64_LENGTH(len) (4 * (((len) + 2) / 3)) -int base64_encode (const void *, int, char *); -int base64_decode (const char *, void *); +size_t base64_encode (const void *, size_t, char *); +ssize_t base64_decode (const char *, void *); #ifdef HAVE_LIBPCRE void *compile_pcre_regex (const char *); @@ -155,6 +154,8 @@ void stable_sort (void *, size_t, size_t, int (*) (const void *, const void *)); const char *print_decimal (double); +long get_max_length (const char *path, int length, int name); + extern unsigned char char_prop[]; #endif /* UTILS_H */