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

int
main (int argc, char **argv)
{
   GKeyFile *keyfile = g_key_file_new();

   g_key_file_set_integer(keyfile, "FOO", "BAR", 10);

   printf("Before:\n%s\n", g_key_file_to_data(keyfile, NULL, NULL));

   g_key_file_remove_key(keyfile, "FOO", "BAR", NULL);

   printf("After: \n%s\n", g_key_file_to_data(keyfile, NULL, NULL));

   return 0;
}
