Squid Web Cache master
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_INCLUDE_UTIL_H
10#define SQUID_INCLUDE_UTIL_H
11
12#if HAVE_ARPA_INET_H
13#include <arpa/inet.h>
14#endif
15
16void Tolower(char *);
17
18double xpercent(double part, double whole);
19int xpercentInt(double part, double whole);
20double xdiv(double nom, double denom);
21
22const char *xitoa(int num);
23const char *xint64toa(int64_t num);
24
25const char *double_to_str(char *buf, int buf_size, double value);
26
27#endif /* SQUID_INCLUDE_UTIL_H */
28
double xpercent(double part, double whole)
Definition util.cc:40
double xdiv(double nom, double denom)
Definition util.cc:53
const char * xitoa(int num)
Definition util.cc:60
const char * double_to_str(char *buf, int buf_size, double value)
Definition util.cc:77
int xpercentInt(double part, double whole)
Definition util.cc:46
void Tolower(char *)
Definition util.cc:28
const char * xint64toa(int64_t num)
Definition util.cc:69