Ubuntu Pastebin

Paste from ubuntu at Fri, 23 Sep 2016 02:43:44 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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__
Download as text