Collect all random utilities in one header file available to all
users.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
#include "parser.h"
#include "debug.h"
#include "string.h"
+#include "utils.h"
int parse_opts(const char *str, char *ow_path, size_t pathlen, double *offset)
{
#include "process.h"
#include "string.h"
#include "debug.h"
+#include "utils.h"
#define STATFILE "/proc/stat"
--- /dev/null
+#ifndef _UTILS_H_
+#define _UTILS_H_
+
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+
+#endif