aboutsummaryrefslogtreecommitdiff
path: root/src/utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.hpp')
-rw-r--r--src/utils.hpp15
1 files changed, 15 insertions, 0 deletions
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 <memory>
+#include <string>
+
+/**
+ * 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