#include <cerrno>
-bool
+static bool
xstrtoul(const char *s, char **end, unsigned long *value,
unsigned long min, unsigned long max)
{
#ifndef _SQUID_XSTRTO_H
#define _SQUID_XSTRTO_H
-// these functions are not used by the remaining Squid C code.
+// this function is not used by the remaining Squid C code
#if defined(__cplusplus)
/**
- * xstrtou{i,l} - string to number conversion
+ * Convert a c-string (or its prefix) into an unsigned integer.
* \param s input string
* \param end like strtoul's "end" pointer
* \param value pointer for result. Undefined on failure
* \return true/false whether number was accepted. On failure, *value has
* undefined contents.
*/
-bool xstrtoul(const char *s, char **end, unsigned long *value,
- unsigned long min, unsigned long max);
-
bool xstrtoui(const char *s, char **end, unsigned int *value,
unsigned int min, unsigned int max);