
#include <glib.h>

int main (int argc, char **argv)
{
  int result;
  /* abcd string is 5-byte long (4 characters and a NULL-terminator) */
  char *abcd = "abcd";
  result = g_utf8_validate (abcd, 5, NULL) ? 0 : 1;
  g_printf ("%s\n", result == 0 ? "SUCCESS" : "FAILURE");
  return result;
}