#include <stdio.h>
#include <glib.h>

int main()
{
    char *text1 = "Hello";
    char *text2 = "Hi";
    char *text3 = "Hello";

    gint comp = g_utf8_collate("Hello", "hi");
    printf("Mismatched strings: %d\n", comp);

    gint comp2 = g_utf8_collate(text1, text2);
    printf("Mismatched strings: %d\n", comp2);

    gint comp3 = g_utf8_collate(text1, text3);
    printf("Matched strings: %d\n", comp3);

    gint comp4 = g_utf8_collate(text3, text3);
    printf("Matched strings: %d\n", comp4);

    gint comp5 = g_utf8_collate("Hello", "Hello");
    printf("Matched strings: %d\n", comp5);

    gint comp6 = g_utf8_collate(text1, "Hello");
    printf("Matched strings: %d\n", comp6);

    gint comp7 = g_utf8_collate("Hello", text1);
    printf("Matched strings: %d\n", comp7);

    return 0;
}
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
