Back to index

courier  0.68.2
graphemetest.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 2011 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 **
00005 */
00006 
00007 #include      "unicode_config.h"
00008 #include      "unicode.h"
00009 #include      <string.h>
00010 #include      <stdlib.h>
00011 #include      <stdio.h>
00012 #include      <errno.h>
00013 
00014 
00015 int main(int argc, char **argv)
00016 {
00017        if (argc >= 3)
00018        {
00019               printf("%d\n",
00020                      unicode_grapheme_break(strtol(argv[1], NULL, 0),
00021                                          strtol(argv[2], NULL, 0)));
00022        }
00023        return (0);
00024 }