From 8ceb79db1d0687bba005cef4a77bb889bf7ec3c3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 9 Jan 2022 21:47:23 +0100 Subject: refactor: rewrite to c++ --- src/utils.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/utils.hpp (limited to 'src/utils.hpp') diff --git a/src/utils.hpp b/src/utils.hpp new file mode 100644 index 0000000..91a1d8e --- /dev/null +++ b/src/utils.hpp @@ -0,0 +1,15 @@ +#ifndef UTILS_HPP +#define UTILS_HPP + +#include +#include + +/** + * Converts a string to a unsigned integer. + * + * @param str A string that possibly is a unsigned integer + * @returns A unsigned integer + */ +unsigned int str_to_uint(std::string str); + +#endif -- cgit v1.2.3-18-g5258