Description: Add util.h for strend
This adds a header file (util.h) that's needed in order to use the `strend`
function of `util.c`.
Author: Simon Quigley <tsimonq2@ubuntu.com>
Last-Update: 2016-09-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: b/util.c
===================================================================
--- a/util.c
+++ b/util.c
@@ -123,7 +123,7 @@ inline gchar *size_human_readable(gfloat
return g_strdup_printf("%.1f GiB", size / GiB);
}
-inline char *strend(gchar * str, gchar chr)
+char *strend(gchar * str, gchar chr)
{
if (!str)
return NULL;
Index: b/util.h
===================================================================
--- /dev/null
+++ b/util.h
@@ -0,0 +1,6 @@
+#ifndef __UTIL_H__
+#define __UTIL_H__
+
+char *strend(gchar * str, gchar chr);
+
+#endif // __UTIL_H__