Function

AppStreamvercmp_simple

Declaration [src]

gint
as_vercmp_simple (
  const gchar* a,
  const gchar* b
)

Description [src]

Compare alpha and numeric segments of two software versions.

Parameters

a const gchar*
 

First version number.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
b const gchar*
 

Second version number.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gint
 

0 if a is newer than b; 0 if a and b are the same version; <<0 if b is newer than a.