]> sjero.net Git - wget/blobdiff - src/cookies.c
[svn] Use high-resolution timers on Windows.
[wget] / src / cookies.c
index fe9761fde43fa30ff2a1d1f8032e312d7d7dbdc4..d0d9e6101e3c4930b210aee19aaa8a53acad0753 100644 (file)
@@ -898,6 +898,19 @@ cookie_handle_set_cookie (struct cookie_jar *jar,
 /* Support for sending out cookies in HTTP requests, based on
    previously stored cookies.  Entry point is
    `build_cookies_request'.  */
+   
+/* Return a count of how many times CHR occurs in STRING. */
+
+static int
+count_char (const char *string, char chr)
+{
+  const char *p;
+  int count = 0;
+  for (p = string; *p; p++)
+    if (*p == chr)
+      ++count;
+  return count;
+}
 
 /* Find the cookie chains whose domains match HOST and store them to
    DEST.