aboutsummaryrefslogtreecommitdiff
path: root/util/cutils.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-09-07 10:44:33 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2018-10-05 16:14:22 +0400
commit85e33a2818f46ee023c8729252c797f125744d20 (patch)
treead0ca1ff77c10c4c6e462987217fb7631c0e55f4 /util/cutils.c
parenta95db58f210ddf5ed61f25cfcb89063cda86ea3c (diff)
downloadqemu-85e33a2818f46ee023c8729252c797f125744d20.zip
qemu-85e33a2818f46ee023c8729252c797f125744d20.tar.gz
qemu-85e33a2818f46ee023c8729252c797f125744d20.tar.bz2
cutils: add qemu_pstrcmp0()
A char** variant of g_strcmp0(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'util/cutils.c')
-rw-r--r--util/cutils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cutils.c b/util/cutils.c
index 9205e09..698bd31 100644
--- a/util/cutils.c
+++ b/util/cutils.c
@@ -769,3 +769,8 @@ char *size_to_str(uint64_t val)
return g_strdup_printf("%0.3g %sB", (double)val / div, suffixes[i]);
}
+
+int qemu_pstrcmp0(const char **str1, const char **str2)
+{
+ return g_strcmp0(*str1, *str2);
+}