1 /* Declarations for utils.c.
2 Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4 This file is part of GNU Wget.
6 GNU Wget is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 GNU Wget is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Wget; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
27 /* A linked list of strings. The list is ordered alphabetically. */
44 char *time_str PARAMS ((time_t *));
45 char *datetime_str PARAMS ((time_t *));
48 void print_malloc_debug_stats ();
51 char *strdupdelim PARAMS ((const char *, const char *));
52 char **sepstring PARAMS ((const char *));
53 int frontcmp PARAMS ((const char *, const char *));
54 char *pwd_cuserid PARAMS ((char *));
55 void fork_to_background PARAMS ((void));
56 void path_simplify PARAMS ((char *));
58 void touch PARAMS ((const char *, time_t));
59 int remove_link PARAMS ((const char *));
60 int file_exists_p PARAMS ((const char *));
61 int file_non_directory_p PARAMS ((const char *));
62 int make_directory PARAMS ((const char *));
63 char *unique_name PARAMS ((const char *));
64 char *file_merge PARAMS ((const char *, const char *));
66 int acceptable PARAMS ((const char *));
67 int accdir PARAMS ((const char *s, enum accd));
68 char *suffix PARAMS ((const char *s));
70 char *read_whole_line PARAMS ((FILE *));
71 struct file_memory *read_file PARAMS ((const char *));
72 void read_file_free PARAMS ((struct file_memory *));
74 void free_vec PARAMS ((char **));
75 char **merge_vecs PARAMS ((char **, char **));
76 slist *slist_append PARAMS ((slist *, const char *));
77 slist *slist_prepend PARAMS ((slist *, const char *));
78 slist *slist_nreverse PARAMS ((slist *));
79 int slist_contains PARAMS ((slist *, const char *));
80 void slist_free PARAMS ((slist *));
82 void string_set_add PARAMS ((struct hash_table *, const char *));
83 int string_set_contains PARAMS ((struct hash_table *, const char *));
84 void string_set_free PARAMS ((struct hash_table *));
85 void free_keys_and_values PARAMS ((struct hash_table *));
87 char *legible PARAMS ((long));
88 char *legible_very_long PARAMS ((VERY_LONG_TYPE));
89 int numdigit PARAMS ((long));
90 void long_to_string PARAMS ((char *, long));
92 struct wget_timer *wtimer_allocate PARAMS ((void));
93 struct wget_timer *wtimer_new PARAMS ((void));
94 void wtimer_delete PARAMS ((struct wget_timer *));
95 void wtimer_reset PARAMS ((struct wget_timer *));
96 long wtimer_elapsed PARAMS ((struct wget_timer *));
97 long wtimer_granularity PARAMS ((void));
99 char *html_quote_string PARAMS ((const char *));