mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
a95db58f21
commit
85e33a2818
2 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue