Imported Debian patch 0.66.1-1
[hcoop/debian/courier-authlib.git] / libs / unicode / graphemetest.c
diff --git a/libs/unicode/graphemetest.c b/libs/unicode/graphemetest.c
new file mode 100644 (file)
index 0000000..58bc184
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+** Copyright 2011 Double Precision, Inc.
+** See COPYING for distribution information.
+**
+*/
+
+#include       "unicode_config.h"
+#include       "unicode.h"
+#include       <string.h>
+#include       <stdlib.h>
+#include       <stdio.h>
+#include       <errno.h>
+
+
+int main(int argc, char **argv)
+{
+       if (argc >= 3)
+       {
+               printf("%d\n",
+                      unicode_grapheme_break(strtol(argv[1], NULL, 0),
+                                             strtol(argv[2], NULL, 0)));
+       }
+       return (0);
+}